You are here

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\Tests
View 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

Namesort descending Modifiers Type Description Overrides
RenderCacheTest::$profile protected property The profile to install as a basis for testing.
RenderCacheTest::getInfo public static function
RenderCacheTest::setUp protected function
RenderCacheTest::testRenderCache public function The basic functionality of the RenderCache class.