Scheb\TwoFactorBundle\Tests\Command\GoogleSecretCommandTest::createContainerStub PHP Method

createContainerStub() private method

private createContainerStub ( $hasService, $googleAuthenticator )
    private function createContainerStub($hasService, $googleAuthenticator)
    {
        //Stub the container
        $container = $this->createMock('Symfony\\Component\\DependencyInjection\\ContainerInterface');
        $container->expects($this->any())->method('has')->with('scheb_two_factor.security.google_authenticator')->willReturn($hasService);
        $container->expects($this->any())->method('get')->with('scheb_two_factor.security.google_authenticator')->willReturn($googleAuthenticator);
        return $container;
    }