You are here

public function RendererTest::testAddCacheableDependency in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::testAddCacheableDependency()
  2. 9 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::testAddCacheableDependency()

@covers ::addCacheableDependency

@dataProvider providerTestAddCacheableDependency

File

core/tests/Drupal/Tests/Core/Render/RendererTest.php, line 966
Contains \Drupal\Tests\Core\Render\RendererTest.

Class

RendererTest
@coversDefaultClass \Drupal\Core\Render\Renderer @group Render

Namespace

Drupal\Tests\Core\Render

Code

public function testAddCacheableDependency(array $build, $object, array $expected) {
  $this->renderer
    ->addCacheableDependency($build, $object);
  $this
    ->assertEquals($build, $expected);
}