Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Session\SessionFlagGeneratorTest::getSessionFlag_noProviderKey_returnSessionFlag PHP 메소드

getSessionFlag_noProviderKey_returnSessionFlag() 공개 메소드

    public function getSessionFlag_noProviderKey_returnSessionFlag()
    {
        $token = $this->createMock('Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface');
        $token->expects($this->once())->method('getUsername')->willReturn('username');
        $returnValue = $this->sessionFlagGenerator->getSessionFlag('twoFactorProvider', $token);
        $this->assertEquals('two_factor_twoFactorProvider_any_username', $returnValue);
    }