public function CacheCollectorTest::testUpdateCacheNoChanges in Drupal 8
Tests updating the cache when no changes were made.
File
- core/
tests/ Drupal/ Tests/ Core/ Cache/ CacheCollectorTest.php, line 152
Class
- CacheCollectorTest
- @coversDefaultClass \Drupal\Core\Cache\CacheCollector @group Cache
Namespace
Drupal\Tests\Core\CacheCode
public function testUpdateCacheNoChanges() {
$this->lock
->expects($this
->never())
->method('acquire');
$this->cacheBackend
->expects($this
->never())
->method('set');
// Destruct the object to trigger the update data process.
$this->collector
->destruct();
}