AssetManagerTest\View\Helper\AssetTest::testForceToNotAppendTimestampWithoutCache PHP Method

testForceToNotAppendTimestampWithoutCache() public method

    public function testForceToNotAppendTimestampWithoutCache()
    {
        $config = array('view_helper' => array('append_timestamp' => false, 'query_string' => '_', 'cache' => null));
        $filename = 'porn-food/bac.on';
        $resolver = $this->getGenericResolver();
        $resolver->setMap(array('porn-food/bac.on' => __FILE__));
        $helper = new Asset($resolver, null, $config);
        $newFilename = $helper->__invoke($filename);
        $this->assertNotContains('?_=', $newFilename);
        $this->assertSame($newFilename, $filename);
    }