Fixes for cache in tests

This commit is contained in:
David Bomba 2024-06-21 10:40:51 +10:00
parent 698a376de3
commit d764f2736f

View File

@ -31,11 +31,13 @@ class RedisVsDatabaseTest extends TestCase
{ {
$start = microtime(true); $start = microtime(true);
app('currencies');
$currencies = Cache::get('currencies'); $currencies = Cache::get('currencies');
$currencies->filter(function ($item) { $currencies->first(function ($item) {
return $item->id == 17; return $item->id == 17;
})->first(); });
nlog(microtime(true) - $start); nlog(microtime(true) - $start);