From 7f1d4cdeba177c5ee964be7a6ff180e2a033603e Mon Sep 17 00:00:00 2001 From: leventcorapsiz Date: Sun, 19 May 2024 23:08:32 +0300 Subject: [PATCH] run pint --- tests/Repositories/RedisRepository.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Repositories/RedisRepository.php b/tests/Repositories/RedisRepository.php index daf4669..c389339 100644 --- a/tests/Repositories/RedisRepository.php +++ b/tests/Repositories/RedisRepository.php @@ -41,6 +41,7 @@ ->once() ->with(Mockery::on(function ($callback) use ($pipe) { $callback($pipe); + return true; })) ->andReturnNull(); @@ -106,7 +107,7 @@ ->shouldReceive('eval') ->once() ->andReturn(json_encode([ - 'averageHitPerSecond' => 1, 'averageMissPerSecond' => 2, 'averageWritePerSecond' => 3 + 'averageHitPerSecond' => 1, 'averageMissPerSecond' => 2, 'averageWritePerSecond' => 3, ])); expect($this->repository->getCacheSummary()) @@ -121,8 +122,8 @@ ->andReturn(json_encode([ [ 'uri' => '', 'method' => '', 'averageRequestPerSecond' => 1, 'averageMemoryUsage' => 1, - 'averageDuration' => 1 - ] + 'averageDuration' => 1, + ], ])); expect($this->repository->getTopRoutes())