Webiny\Component\Security\Tests\User\Providers\Memory\UserTest::testAuthenticateTrue PHP Method

testAuthenticateTrue() public method

public testAuthenticateTrue ( Firewall $firewall )
$firewall Webiny\Component\Security\Authentication\Firewall
    public function testAuthenticateTrue($firewall)
    {
        $user = new User();
        $user->populate('kent', 'superman', [new Role('ROLE_SUPERHERO')]);
        $login = $login = new Login('kent', 'superman');
        $this->assertTrue($user->authenticate($login, $firewall));
    }