protected function RendererTestBase::setUpUnusedCache in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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.
2 calls to RendererTestBase::setUpUnusedCache()
- RendererPlaceholdersTest::testCacheableParentWithPostRequest in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererPlaceholdersTest.php - @covers ::render @covers ::doRender @covers \Drupal\Core\Render\RenderCache::get @covers ::replacePlaceholders
- RendererPlaceholdersTest::testUncacheableParent in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererPlaceholdersTest.php - @covers ::render @covers ::doRender
File
- core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTestBase.php, line 203 - Contains \Drupal\Tests\Core\Render\RendererTestBase.
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');
}