diff --git a/core/modules/system/src/Tests/Cache/DatabaseBackendUnitTest.php b/core/modules/system/src/Tests/Cache/DatabaseBackendUnitTest.php index 0ea40d2..5330ffe 100644 --- a/core/modules/system/src/Tests/Cache/DatabaseBackendUnitTest.php +++ b/core/modules/system/src/Tests/Cache/DatabaseBackendUnitTest.php @@ -71,5 +71,11 @@ public function testCacheBinExpiration(){ $backend->set('test_cache1', 'foo'); $cached = $backend->get('test_cache1', true); $this->assertIdentical($cached->expire, (string) (REQUEST_TIME + 2801), 'Maximum cache expire time is correct.'); + + $configuration = ['max_expire' => 2800]; + $backend = new DatabaseBackend($this->container->get('database'), $this->container->get('cache_tags.invalidator.checksum'), 'render', $configuration); + $backend->set('test_cache1', 'foo', 3200); + $cached = $backend->get('test_cache1', true); + $this->assertIdentical($cached->expire, (string) (REQUEST_TIME + 2800), 'Maximum cache expire time is correct.'); } }