You are here

public function CacheCollectorTest::testResolveCacheMiss in Drupal 8

Tests the resolve cache miss function.

File

core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php, line 65

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));
}