Die Tests wurden um die Preflight-Tests erweitert.
This commit is contained in:
@@ -8,6 +8,14 @@ use Helper\Api;
|
||||
|
||||
class ReadWorkingHoursCest
|
||||
{
|
||||
public static function preflight(ApiTester $I): void
|
||||
{
|
||||
$I->haveHttpHeader('Origin', Api::TEST_ORIGIN);
|
||||
$I->haveHttpHeader('Access-Control-Request-Method', 'GET');
|
||||
$I->sendOptions('/working-hours/2020-04-15');
|
||||
$I->seeResponseCodeIs(HttpCode::OK);
|
||||
}
|
||||
|
||||
public function readExistingWorkingHours(ApiTester $I): void
|
||||
{
|
||||
$I->haveHttpHeader('Origin', Api::TEST_ORIGIN);
|
||||
|
||||
Reference in New Issue
Block a user