Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Trusted\TrustedFilterTest::requestAuthenticationCode_responseCreated_returnResponse PHP Method

requestAuthenticationCode_responseCreated_returnResponse() public method

    public function requestAuthenticationCode_responseCreated_returnResponse()
    {
        $context = $this->getAuthenticationContext();
        //Mock the authentication handler
        $this->authHandler->expects($this->once())->method('requestAuthenticationCode')->with($context)->willReturn(new Response('<form></form>'));
        $returnValue = $this->trustedFilter->requestAuthenticationCode($context);
        $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $returnValue);
        $this->assertEquals('<form></form>', $returnValue->getContent());
    }