Files
FHC-Core/tests/codeception/tests/api/v1/BuchungCept.php
T
2016-08-03 09:57:24 +02:00

12 lines
388 B
PHP

<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/accounting/Buchung/Buchung");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/accounting/Buchung/Buchung", array("buchung_id" => "0"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();