Scheb\TwoFactorBundle\Tests\Security\TwoFactor\AuthenticationContextTest::getSession_objectInitialized_returnSession PHP 메소드

getSession_objectInitialized_returnSession() 공개 메소드

    public function getSession_objectInitialized_returnSession()
    {
        //Mock the Request object
        $session = $this->createMock('Symfony\\Component\\HttpFoundation\\Session\\SessionInterface');
        $this->request->expects($this->once())->method('getSession')->willReturn($session);
        $returnValue = $this->authContext->getSession();
        $this->assertEquals($session, $returnValue);
    }