AsseticBundleTest\Service::testCacheBusterStrategyWorker PHP Method

testCacheBusterStrategyWorker() public method

    public function testCacheBusterStrategyWorker()
    {
        $factory = $this->object->createAssetFactory($this->configuration->getModule('test_application'));
        // no workers by default:
        $this->assertAttributeEquals([], 'workers', $factory);
        $cacheBusterStrategy = $this->getMockBuilder('AsseticBundle\\CacheBuster\\LastModifiedStrategy')->getMock();
        $this->object->setCacheBusterStrategy($cacheBusterStrategy);
        $factory = $this->object->createAssetFactory($this->configuration->getModule('test_application'));
        // cache buster strategy is added to workers list:
        $this->assertAttributeEquals([$cacheBusterStrategy], 'workers', $factory);
    }