GcConfig\Controller\UserControllerTest::testLoginActionWithWrongPostData PHP Method

testLoginActionWithWrongPostData() public method

Test
    public function testLoginActionWithWrongPostData()
    {
        $auth = new AuthenticationService(new Storage\Session(UserModel::BACKEND_AUTH_NAMESPACE));
        $auth->clearIdentity();
        $this->dispatch('/admin/config/user/login/L2FkbWlu', 'POST', array('login' => 'testlogin', 'password' => 'passwordtest', 'redirect' => 'L2FkbWlu'));
        $this->assertResponseStatusCode(302);
        $this->assertModuleName('GcConfig');
        $this->assertControllerName('UserController');
        $this->assertControllerClass('UserController');
        $this->assertMatchedRouteName('config/user/login');
    }