function RendererTestBase::setUpUnusedCache
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Render/RendererTestBase.php \Drupal\Tests\Core\Render\RendererTestBase::setUpUnusedCache()
Sets up a render cache back-end that is asserted to be never used.
File
-
core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTestBase.php, line 209
Class
- RendererTestBase
- Base class for the actual unit tests testing \Drupal\Core\Render\Renderer.
Namespace
Drupal\Tests\Core\RenderCode
protected function setUpUnusedCache() {
$this->cacheFactory
->expects($this->never())
->method('get');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.