GcConfig\Controller\UserControllerTest::testLoginActionWithPostAndRedirectData PHP Метод

testLoginActionWithPostAndRedirectData() публичный Метод

Test
public testLoginActionWithPostAndRedirectData ( ) : void
Результат void
    public function testLoginActionWithPostAndRedirectData()
    {
        $auth = new AuthenticationService(new Storage\Session(UserModel::BACKEND_AUTH_NAMESPACE));
        $auth->clearIdentity();
        $this->dispatch('/admin/config/user/login/L2FkbWlu', 'POST', array('login' => $this->user->getLogin(), 'password' => 'test-user-model-password', 'redirect' => 'L2FkbWlu'));
        $this->assertResponseStatusCode(302);
        $this->assertModuleName('GcConfig');
        $this->assertControllerName('UserController');
        $this->assertControllerClass('UserController');
        $this->assertMatchedRouteName('config/user/login');
    }