From da6056e0cd53e12cd3a6a5b93fd8f6de69bdfbe1 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 25 Apr 2024 23:45:22 +0000 Subject: [PATCH] fix tests --- Controller/ApiBillController.php | 2 +- tests/Controller/Api/ApiBillControllerTrait.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Controller/ApiBillController.php b/Controller/ApiBillController.php index 29b6816..230c471 100755 --- a/Controller/ApiBillController.php +++ b/Controller/ApiBillController.php @@ -1518,7 +1518,7 @@ final class ApiBillController extends Controller $bill = BillMapper::get()->where('id', (int) $request->getData('id'))->execute(); $request->setData('virtualpath', $this->createBillDir($bill), true); - $this->app->moduleManager->get('Editor')->apiEditorCreate($request, $response, $data); + $this->app->moduleManager->get('Editor', 'Api')->apiEditorCreate($request, $response, $data); if ($response->header->status !== RequestStatusCode::R_200) { return; diff --git a/tests/Controller/Api/ApiBillControllerTrait.php b/tests/Controller/Api/ApiBillControllerTrait.php index 6cadbef..862273a 100644 --- a/tests/Controller/Api/ApiBillControllerTrait.php +++ b/tests/Controller/Api/ApiBillControllerTrait.php @@ -83,6 +83,7 @@ trait ApiBillControllerTrait self::assertGreaterThan(0, $response->getDataArray('')['response']->id); } + #[\PHPUnit\Framework\Attributes\Depends('testBillCreate')] public function testBillNoteCreate() : void { $response = new HttpResponse();