common\tests\unit\models\LoginFormTest::testLoginNoUser PHP Method

testLoginNoUser() public method

public testLoginNoUser ( )
    public function testLoginNoUser()
    {
        $model = new LoginForm(['username' => 'not_existing_username', 'password' => 'not_existing_password']);
        expect('model should not login user', $model->login())->false();
        expect('user should not be logged in', Yii::$app->user->isGuest)->true();
    }