fix tests

This commit is contained in:
Dennis Eichhorn 2024-04-25 23:45:22 +00:00
parent fa0bcbe2af
commit da6056e0cd
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

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