Skip to content

Commit

Permalink
fix: update MomentoCacheBackendTest.php based on phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
rishtigupta committed Mar 12, 2024
1 parent 70f2e44 commit 3a9f19e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/src/Kernel/MomentoCacheBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ protected function createCacheBackend($bin) {
// to be rare in Drupal usage and is redundant anyhow. Will revisit when
// time permits.
// public function testTtl() {
// $backend = $this->getCacheBackend();
// $backend->set('test1', 1, time() + 1);
// $backend->set('test2', 1);
// sleep(3);
// $this->assertFalse
// ($backend->get('test1'), 'Cache id test1 expired.');
// $this->assertNotFalse
// ($backend->get('test2'), 'Cache id test2 still exists.');
// $backend = $this->getCacheBackend();
// $backend->set('test1', 1, time() + 1);
// $backend->set('test2', 1);
// sleep(3);
// $this->assertFalse
// ($backend->get('test1'), 'Cache id test1 expired.');
// $this->assertNotFalse
// ($backend->get('test2'), 'Cache id test2 still exists.');
// }
}

0 comments on commit 3a9f19e

Please sign in to comment.