mirror of
https://github.com/Karaka-Management/oms-Dashboard.git
synced 2026-02-05 21:28:41 +00:00
update
This commit is contained in:
parent
d46e843257
commit
866bbf715e
|
|
@ -156,7 +156,7 @@ final class Installer extends InstallerAbstract
|
|||
|
||||
$module->apiComponentCreate($request, $response);
|
||||
|
||||
$responseData = $response->get('');
|
||||
$responseData = $response->getData('');
|
||||
if (!\is_array($responseData)) {
|
||||
return [];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
$request->setData('title', 'Default Board');
|
||||
|
||||
$this->module->apiBoardCreate($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -139,7 +139,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
$request->setData('module', 'TestModule');
|
||||
|
||||
$this->module->apiComponentCreate($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user