Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Provider\Google\GoogleAuthenticatorTest::generateSecret PHP Method

generateSecret() public method

public generateSecret ( )
    public function generateSecret()
    {
        //Mock the Google class
        $this->google->expects($this->once())->method('generateSecret')->willReturn('SECRETCODE');
        $authenticator = $this->createAuthenticator();
        $returnValue = $authenticator->generateSecret();
        $this->assertEquals('SECRETCODE', $returnValue);
    }