Symfony\Bundle\FrameworkBundle\Tests\Templating\GlobalVariablesTest::testGetTokenNoToken PHP Method

testGetTokenNoToken() public method

public testGetTokenNoToken ( )
    public function testGetTokenNoToken()
    {
        $tokenStorage = $this->getMockBuilder('Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface')->getMock();
        $this->container->set('security.token_storage', $tokenStorage);
        $this->assertNull($this->globals->getToken());
    }