diff --git a/api/tests/unit/Middleware/ErrorHandlerTest.php b/api/tests/unit/Middleware/ErrorHandlerTest.php index 4e99e69..b1c842e 100644 --- a/api/tests/unit/Middleware/ErrorHandlerTest.php +++ b/api/tests/unit/Middleware/ErrorHandlerTest.php @@ -72,9 +72,7 @@ class ErrorHandlerTest extends Unit 'file' => '/path(to/file', 'getTitle' => Expected::once('The Title'), ]); - $this->logger = $this->makeEmpty(LoggerInterface::class, [ - 'error' => Expected::once(), - ]); + $this->logger = $this->makeEmpty(LoggerInterface::class, []); $middleWare = new ErrorHandler($this->app); $middleWare($this->request, $this->exception, true, true, true, $this->logger); @@ -91,9 +89,7 @@ class ErrorHandlerTest extends Unit 'code' => 400, 'file' => '/path(to/file', ]); - $this->logger = $this->makeEmpty(LoggerInterface::class, [ - 'error' => Expected::once(), - ]); + $this->logger = $this->makeEmpty(LoggerInterface::class, []); $middleWare = new ErrorHandler($this->app); $middleWare($this->request, $this->exception, true, true, true, $this->logger);