Skip to content
Snippets Groups Projects
Commit 264b788e authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2373549 by neclimdul: PHPUnit test testGetDoesntHitConsistentBackend...

Issue #2373549 by neclimdul: PHPUnit test testGetDoesntHitConsistentBackend failing when run with coverage reporting
parent c5b2d481
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -44,7 +44,8 @@ class ChainedFastBackendTest extends UnitTestCase {
public function testGetDoesntHitConsistentBackend() {
$consistent_cache = $this->getMock('Drupal\Core\Cache\CacheBackendInterface');
$timestamp_cid = ChainedFastBackend::LAST_WRITE_TIMESTAMP_PREFIX . 'cache_foo';
$timestamp_item = (object) array('cid' => $timestamp_cid, 'data' => time() - 60);
// Use REQUEST_TIME because that is what we will be comparing against.
$timestamp_item = (object) array('cid' => $timestamp_cid, 'data' => REQUEST_TIME - 60);
$consistent_cache->expects($this->once())
->method('get')->with($timestamp_cid)
->will($this->returnValue($timestamp_item));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment