RenderCacheTest.php in Render cache 7.2
File
lib/Drupal/render_cache/Tests/RenderCacheTest.php
View source
<?php
namespace Drupal\render_cache\Tests;
class RenderCacheTest extends \DrupalWebTestCase {
protected $profile = 'testing';
public static function getInfo() {
return array(
'name' => 'RenderCache',
'description' => 'Tests the generic RenderCache functionality.',
'group' => 'render_cache',
);
}
protected function setUp() {
parent::setUp(array(
'render_cache',
'render_cache_block',
));
\ServiceContainer::init();
$this->container = \Drupal::getContainer();
}
public function testRenderCache() {
$recursive = \RenderCache::isRecursive();
$this
->assertFalse($recursive, "Render Stack is not recursive at the start.");
}
}
Classes
Name |
Description |
RenderCacheTest |
Tests the RenderCache implementation of the render_cache module. |