class RenderCacheTest in Render cache 7.2
Tests the RenderCache implementation of the render_cache module.
Hierarchy
- class \Drupal\render_cache\Tests\RenderCacheTest extends \Drupal\render_cache\Tests\DrupalWebTestCase
Expanded class hierarchy of RenderCacheTest
File
- lib/
Drupal/ render_cache/ Tests/ RenderCacheTest.php, line 11 - Contains \Drupal\render_cache\Tests\RenderCacheTest.
Namespace
Drupal\render_cache\TestsView source
class RenderCacheTest extends \DrupalWebTestCase {
/**
* The profile to install as a basis for testing.
*
* @var string
*/
protected $profile = 'testing';
/**
* {@inheritdoc}
*/
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();
}
/**
* The basic functionality of the RenderCache class.
*/
public function testRenderCache() {
$recursive = \RenderCache::isRecursive();
$this
->assertFalse($recursive, "Render Stack is not recursive at the start.");
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RenderCacheTest:: |
protected | property | The profile to install as a basis for testing. | |
RenderCacheTest:: |
public static | function | ||
RenderCacheTest:: |
protected | function | ||
RenderCacheTest:: |
public | function | The basic functionality of the RenderCache class. |