Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Trusted\TrustedFilterTest::requestAuthenticationCode_createNoResponse_returnNull PHP Метод

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

    public function requestAuthenticationCode_createNoResponse_returnNull($response)
    {
        $context = $this->getAuthenticationContext();
        //Mock the authentication handler
        $this->authHandler->expects($this->once())->method('requestAuthenticationCode')->with($context)->willReturn($response);
        $returnValue = $this->trustedFilter->requestAuthenticationCode($context);
        $this->assertNull($returnValue);
    }