You are here

public function AssetResolverTest::testGetCssAssets in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php \Drupal\Tests\Core\Asset\AssetResolverTest::testGetCssAssets()

@covers ::getCssAssets @dataProvider providerAttachedAssets

File

core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php, line 118
Contains \Drupal\Tests\Core\Asset\AssetResolverTest.

Class

AssetResolverTest
@coversDefaultClass \Drupal\Core\Asset\AssetResolver @group Asset

Namespace

Drupal\Tests\Core\Asset

Code

public function testGetCssAssets(AttachedAssetsInterface $assets_a, AttachedAssetsInterface $assets_b, $expected_cache_item_count) {
  $this->assetResolver
    ->getCssAssets($assets_a, FALSE);
  $this->assetResolver
    ->getCssAssets($assets_b, FALSE);
  $this
    ->assertCount($expected_cache_item_count, $this->cache
    ->getAllCids());
}