function RendererTest::testAddCacheableDependency
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::testAddCacheableDependency()
- 10 core/tests/Drupal/Tests/Core/Render/RendererTest.php \Drupal\Tests\Core\Render\RendererTest::testAddCacheableDependency()
- 11.x 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 969
Class
- RendererTest
- @coversDefaultClass \Drupal\Core\Render\Renderer @group Render
Namespace
Drupal\Tests\Core\RenderCode
public function testAddCacheableDependency(array $build, $object, array $expected) {
$this->renderer
->addCacheableDependency($build, $object);
$this->assertEquals($build, $expected);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.