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

beginAuthentication_trustedOptionNotUsed_setUseTrustedOptionFalse() public method

    public function beginAuthentication_trustedOptionNotUsed_setUseTrustedOptionFalse()
    {
        $user = $this->getUser();
        $context = $this->getAuthenticationContext(null, $user);
        $trustedFilter = $this->getTrustedFilter($this->authHandler, $this->cookieManager, false);
        //Mock the context
        $context->expects($this->once())->method('setUseTrustedOption')->with(false);
        $trustedFilter->beginAuthentication($context);
    }