From 21713838d0a3cc79e7f39545de6dbeeb2e4ada79 Mon Sep 17 00:00:00 2001 From: Thomas Nabord Date: Fri, 5 Jul 2024 10:37:22 +0100 Subject: [PATCH] Fix CI reports --- classes/Exceptions/UpgradeException.php | 1 + tests/unit/ErrorHandlerTest.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/classes/Exceptions/UpgradeException.php b/classes/Exceptions/UpgradeException.php index 25867fa0b9..8dfec5d227 100644 --- a/classes/Exceptions/UpgradeException.php +++ b/classes/Exceptions/UpgradeException.php @@ -55,6 +55,7 @@ public function getQuickInfos(): array $this->quickInfos ); } + return $this->quickInfos; } diff --git a/tests/unit/ErrorHandlerTest.php b/tests/unit/ErrorHandlerTest.php index 14111a7701..f07b80fe12 100644 --- a/tests/unit/ErrorHandlerTest.php +++ b/tests/unit/ErrorHandlerTest.php @@ -37,7 +37,10 @@ protected function setUp() { parent::setUp(); $this->logger = new LegacyLogger(); - $this->errorHandler = new ErrorHandler($this->logger); + $this->errorHandler = $this->getMockBuilder(ErrorHandler::class) + ->setConstructorArgs([$this->logger]) + ->setMethods(['terminate']) + ->getMock(); } public function testDefaultContentIsEmpty()