From 9b71c5004572ab90a6f97114aa1e20e60f6bc7b6 Mon Sep 17 00:00:00 2001 From: mattamon Date: Wed, 23 Oct 2024 10:43:43 +0200 Subject: [PATCH] Use correct method --- tests/Model/Processor/ProcessorTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Model/Processor/ProcessorTest.php b/tests/Model/Processor/ProcessorTest.php index bd0a15e..10ca481 100644 --- a/tests/Model/Processor/ProcessorTest.php +++ b/tests/Model/Processor/ProcessorTest.php @@ -73,7 +73,7 @@ public function checkProcessors(string $processorName, array $config): void try { $pdfContent = $this->getPDFfromProcessor($processor, $config); } catch (ServiceUnavailableException $e) { - $this->incomplete('Service Unavailable: ' . $e->getMessage()); + $this->markTestIncomplete('Service Unavailable: ' . $e->getMessage()); } $file = tmpfile(); @@ -97,6 +97,9 @@ public function checkProcessors(string $processorName, array $config): void } + /** + * @throws ServiceUnavailableException + */ private function getPDFfromProcessor(Processor $processor, array $config): string { $html = file_get_contents(__DIR__.'/../../Support/Resources/test_web2print.html.twig');