databasePrefix, \Drupal::service('cache_tags.invalidator.checksum')); } /** * {@inheritdoc} */ protected function tearDown() { foreach ($this->cachebackends as $bin => $cachebackend) { $this->cachebackends[$bin]->removeBin(); } parent::tearDown(); } /** * {@inheritdoc} */ public function testSetGet() { parent::testSetGet(); // Make sure entries are permanent (i.e. no TTL). $backend = $this->getCacheBackend($this->getTestBin()); $key = $backend->getApcuKey('TEST8'); $iterator = new \APCUIterator('/^' . $key . '/'); foreach ($iterator as $item) { $this->assertEqual(0, $item['ttl']); $found = TRUE; } $this->assertTrue($found); } }