GcConfig\Controller\UserControllerTest::testLoginActionWithPostData PHP Method

testLoginActionWithPostData() public method

Test
public testLoginActionWithPostData ( ) : void
return void
    public function testLoginActionWithPostData()
    {
        $auth = new AuthenticationService(new Storage\Session(UserModel::BACKEND_AUTH_NAMESPACE));
        $auth->clearIdentity();
        $this->dispatch('/admin/config/user/login', 'POST', array('login' => $this->user->getLogin(), 'password' => 'test-user-model-password'));
        $this->assertResponseStatusCode(302);
        $this->assertModuleName('GcConfig');
        $this->assertControllerName('UserController');
        $this->assertControllerClass('UserController');
        $this->assertMatchedRouteName('config/user/login');
    }