Bolt\Tests\Controller\Backend\AuthenticationTest::testResetPassword PHP Метод

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

public testResetPassword ( )
    public function testResetPassword()
    {
        $passwordMock = $this->getMockPassword(['resetPasswordConfirm']);
        $passwordMock->expects($this->once())->method('resetPasswordConfirm')->will($this->returnValue(true));
        $this->setService('access_control.password', $passwordMock);
        $this->setRequest(Request::create('/bolt/resetpassword'));
        $response = $this->controller()->resetPassword($this->getRequest());
        $this->assertRegExp('|Redirecting to /bolt/login|', $response->getContent());
    }