mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-02-11 07:18:40 +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);
|
$this->module->apiExchangeExport($request, $response);
|
||||||
self::assertEquals(RequestStatusCode::R_400, $response->header->status);
|
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