mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-05 03:34:36 -04:00
Fixes for cache in tests
This commit is contained in:
parent
698a376de3
commit
d764f2736f
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user