Fixed Broken Unit Tests

This commit is contained in:
Andreas Österreicher
2018-02-16 11:43:59 +01:00
parent 2ec77ad9bd
commit 1e4fc86be5
8 changed files with 0 additions and 114 deletions
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/project/Scrumteam/: Scrumteam");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/project/Scrumteam/Scrumteam", array("scrumteam_kurzbz" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +0,0 @@
<?php
$I = new ApiTester($scenario);
$I->wantTo("Test API call v1/ressource/Zeitfenster/: Zeitfenster");
$I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader("FHC-API-KEY", "testapikey@fhcomplete.org");
$I->sendGET("v1/ressource/Zeitfenster/Zeitfenster", array("wochentag" => "1", "studiengang_kz" => "1", "ort_kurzbz" => "1", "stunde" => "1"));
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]);
$I->wait();