From 813e66e83ea49c5c0638cea1874ddb45738179aa Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Mon, 7 Mar 2022 13:44:49 +0000 Subject: [PATCH] [TESTS] Fix Core/CacheTest --- tests/Core/CacheTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Core/CacheTest.php b/tests/Core/CacheTest.php index b51bce4e68..ca3f3bc0be 100644 --- a/tests/Core/CacheTest.php +++ b/tests/Core/CacheTest.php @@ -140,10 +140,10 @@ class CacheTest extends KernelTestCase static::assertSame(['quux', 'foo', 'bar'], Cache::getList($key, function ($i) { $this->assertFalse('should not be called'); }, pool: 'file')); Cache::listPushLeft($key, 'foobar', max_count: 2, pool: 'file'); static::assertSame(['foobar', 'quux'], Cache::getList($key, function ($i) { $this->assertFalse('should not be called'); }, pool: 'file')); - Cache::listPushRight($key, 'foo'); - static::assertSame(['foobar', 'quux', 'foo'], Cache::getList($key, function ($i) { $this->assertFalse('should not be called'); })); - Cache::listPushRight($key, 'bar', max_count: 2); - static::assertSame(['foo', 'bar'], Cache::getList($key, function ($i) { $this->assertFalse('should not be called'); })); + Cache::listPushRight($key, 'foo', pool: 'file'); + static::assertSame(['foobar', 'quux', 'foo'], Cache::getList($key, function ($i) { $this->assertFalse('should not be called'); }, pool: 'file')); + Cache::listPushRight($key, 'bar', max_count: 2, pool: 'file'); + static::assertSame(['foo', 'bar'], Cache::getList($key, function ($i) { $this->assertFalse('should not be called'); }, pool: 'file')); static::assertTrue(Cache::deleteList($key, pool: 'file')); } }