You are here

protected function RenderCacheBackendAdapterTest::getCacheInfo in Render cache 7.2

8 calls to RenderCacheBackendAdapterTest::getCacheInfo()
RenderCacheBackendAdapterTest::test_getMultiple in tests/src/Cache/RenderCacheBackendAdapterTest.php
Tests that RenderCacheBackendAdapter::getMultiple() is working properly. @covers ::getMultiple()
RenderCacheBackendAdapterTest::test_get_hit in tests/src/Cache/RenderCacheBackendAdapterTest.php
Tests that RenderCacheBackendAdapter::get() is working properly. @covers ::__construct() @covers ::get() @covers ::getCacheId()
RenderCacheBackendAdapterTest::test_get_miss in tests/src/Cache/RenderCacheBackendAdapterTest.php
@covers ::get() @covers ::getMultiple()
RenderCacheBackendAdapterTest::test_set in tests/src/Cache/RenderCacheBackendAdapterTest.php
Tests that RenderCacheBackendAdapter::set() is working properly. @covers ::set() @covers ::preserveProperties()
RenderCacheBackendAdapterTest::test_setMultiple in tests/src/Cache/RenderCacheBackendAdapterTest.php
Tests that RenderCacheBackendAdapter::setMultiple() is working properly. @covers ::setMultiple() @covers ::set()

... See full list

File

tests/src/Cache/RenderCacheBackendAdapterTest.php, line 307
Contains \Drupal\render_cache\Tests\Cache\RenderCacheBackendAdapterTest

Class

RenderCacheBackendAdapterTest
@coversDefaultClass \Drupal\render_cache\Cache\RenderCacheBackendAdapter @group cache

Namespace

Drupal\render_cache\Tests\Cache

Code

protected function getCacheInfo($cid, $strategy) {
  return array(
    'cid' => $cid,
    'keys' => array(
      'render',
      'foo',
      'bar',
    ),
    'tags' => array(
      'zar:1',
    ),
    'max-age' => array(
      600,
    ),
    'downstream-ttl' => array(),
    'render_cache_ignore_request_method_check' => FALSE,
    'render_cache_cache_strategy' => $strategy,
    'render_cache_preserve_properties' => array(
      'baz',
    ),
  );
}