mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-01-11 00:28:41 +00:00
add invalid api function tests
This commit is contained in:
parent
99b95a2a45
commit
f46e16282f
|
|
@ -276,4 +276,14 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
$this->module->apiExchangeExport($request, $response);
|
||||
self::assertEquals(RequestStatusCode::R_400, $response->header->status);
|
||||
}
|
||||
|
||||
public function testInvalidapiExchangeSettingCreate() : void
|
||||
{
|
||||
$response = new HttpResponse();
|
||||
$request = new HttpRequest(new HttpUri(''));
|
||||
|
||||
$request->header->account = 1;
|
||||
$this->module->apiExchangeSettingCreate($request, $response);
|
||||
self::assertEquals(RequestStatusCode::R_400, $response->header->status);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user