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()