Files
FHC-Core/tests/codeception/tests/api/v1/GebietCept.php
T

11 lines
367 B
PHP

<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/testtool/Gebiet/Gebiet");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "[email protected]");
$I->sendGET("v1/testtool/Gebiet/Gebiet", array("gebiet_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);