diff --git a/core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTest.php b/core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTest.php index fabe474f32..0a5ee7e564 100644 --- a/core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTest.php +++ b/core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTest.php @@ -30,16 +30,6 @@ protected function createCacheBackend($bin) { } /** - * Gets a CacheTagsChecksum tag validator. - * - * @return \Drupal\Core\Cache\DatabaseCacheTagsChecksum - * A CacheTagChecksum tag validator. - */ - protected function getCacheTagsChecksum() { - return $this->container->get('cache_tags.invalidator.checksum'); - } - - /** * {@inheritdoc} */ public function testSetGet() { @@ -64,7 +54,8 @@ public function testSetGet() { */ public function testCorruptCacheReturnsFalse() { $corrupt_backend = $this->getCacheBackend('corrupt'); - $cache_tags_checksum = $this->getCacheTagsChecksum(); + // Gets the CacheTagsChecksum tag validator. + $cache_tags_checksum = $this->container->get('cache_tags.invalidator.checksum'); // All DatabaseBackend cache tables should be prefixed with 'cache_'. As // specified on \Drupal\Core\Cache\DatabaseBackend::__construct.