mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-02-14 07:18:42 +00:00
fix tests
This commit is contained in:
parent
fa0bcbe2af
commit
da6056e0cd
|
|
@ -1518,7 +1518,7 @@ final class ApiBillController extends Controller
|
||||||
$bill = BillMapper::get()->where('id', (int) $request->getData('id'))->execute();
|
$bill = BillMapper::get()->where('id', (int) $request->getData('id'))->execute();
|
||||||
|
|
||||||
$request->setData('virtualpath', $this->createBillDir($bill), true);
|
$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) {
|
if ($response->header->status !== RequestStatusCode::R_200) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@ trait ApiBillControllerTrait
|
||||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[\PHPUnit\Framework\Attributes\Depends('testBillCreate')]
|
||||||
public function testBillNoteCreate() : void
|
public function testBillNoteCreate() : void
|
||||||
{
|
{
|
||||||
$response = new HttpResponse();
|
$response = new HttpResponse();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user