diff --git a/src/Renderer/Renderer.php b/src/Renderer/Renderer.php index ccda6881..2cbae027 100644 --- a/src/Renderer/Renderer.php +++ b/src/Renderer/Renderer.php @@ -29,7 +29,7 @@ class Renderer } if ($this->logger) { - $this->logger->error('Unable to find a renderer for template file "{file}"', ['file' => $template]); + $this->logger->critical('Unable to find a renderer for template file "{file}"', ['file' => $template]); } return ''; diff --git a/tests/Unit/Renderer/RendererTest.php b/tests/Unit/Renderer/RendererTest.php index 0b306c19..d7f59648 100644 --- a/tests/Unit/Renderer/RendererTest.php +++ b/tests/Unit/Renderer/RendererTest.php @@ -56,7 +56,7 @@ class RendererTest extends TestCase $loggerMock = $this->getMockForAbstractClass(LoggerInterface::class); $loggerMock ->expects($this->once()) - ->method('error'); + ->method('critical'); $renderer->setLogger($loggerMock);