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