$this->assetResolver =
new AssetResolver($this->libraryDiscovery,
$this->libraryDependencyResolver,
$this->moduleHandler,
$this->themeManager,
$this->languageManager,
$this->cache
);
} /**
* @covers ::getCssAssets
* @dataProvider providerAttachedAssets
*/
public function testGetCssAssets(AttachedAssetsInterface
$assets_a, AttachedAssetsInterface
$assets_b,
$expected_cache_item_count) { $this->assetResolver->
getCssAssets($assets_a, FALSE,
$this->english
);
$this->assetResolver->
getCssAssets($assets_b, FALSE,
$this->english
);
$this->
assertCount($expected_cache_item_count,
$this->cache->
getAllCids());
} /**
* @covers ::getJsAssets
* @dataProvider providerAttachedAssets
*/
public function testGetJsAssets(AttachedAssetsInterface
$assets_a, AttachedAssetsInterface
$assets_b,
$expected_cache_item_count) { $this->assetResolver->
getJsAssets($assets_a, FALSE,
$this->english
);
$this->assetResolver->
getJsAssets($assets_b, FALSE,
$this->english
);
$this->
assertCount($expected_cache_item_count,
$this->cache->
getAllCids());