Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Trusted\TrustedComputerManagerTest::isTrustedComputer_supportsTrustedComputerInterface_returnResult PHP Метод

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

    public function isTrustedComputer_supportsTrustedComputerInterface_returnResult($userReturnValue)
    {
        $user = $this->createMock('Scheb\\TwoFactorBundle\\Model\\TrustedComputerInterface');
        $user->expects($this->any())->method('isTrustedComputer')->with('trustedToken')->willReturn($userReturnValue);
        $returnValue = $this->trustedComputerManager->isTrustedComputer($user, 'trustedToken');
        $this->assertEquals($userReturnValue, $returnValue);
    }