You are here

public function CacheCollectorTest::testResolveCacheMiss in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php \Drupal\Tests\Core\Cache\CacheCollectorTest::testResolveCacheMiss()

Tests the resolve cache miss function.

File

core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php, line 71
Contains \Drupal\Tests\Core\Cache\CacheCollectorTest.

Class

CacheCollectorTest
@coversDefaultClass \Drupal\Core\Cache\CacheCollector @group Cache

Namespace

Drupal\Tests\Core\Cache

Code

public function testResolveCacheMiss() {
  $key = $this
    ->randomMachineName();
  $value = $this
    ->randomMachineName();
  $this->collector
    ->setCacheMissData($key, $value);
  $this
    ->assertEquals($value, $this->collector
    ->get($key));
}