Die Namen der Eigenschaften waren nicht perfekt.
This commit is contained in:
@@ -13,8 +13,8 @@ class CreateWorkingHoursCest
|
||||
$I->haveHttpHeader('accept', 'application/json');
|
||||
$I->haveHttpHeader('content-type', 'application/json');
|
||||
$I->sendPost('/working-hours', [
|
||||
'date' => '2020-04-01',
|
||||
'workingHours' => '08:00:00',
|
||||
'workingDay' => '2020-04-01',
|
||||
'workingTime' => '08:00:00',
|
||||
]);
|
||||
$I->seeResponseCodeIs(HttpCode::CREATED);
|
||||
$I->seeResponseIsJson();
|
||||
@@ -27,8 +27,8 @@ class CreateWorkingHoursCest
|
||||
$I->haveHttpHeader('accept', 'application/json');
|
||||
$I->haveHttpHeader('content-type', 'application/json');
|
||||
$I->sendPost('/working-hours', [
|
||||
'date' => '2020-04-01',
|
||||
'workingHours' => 8.0,
|
||||
'workingDay' => '2020-04-01',
|
||||
'workingTime' => 8.0,
|
||||
]);
|
||||
$I->seeResponseCodeIs(HttpCode::BAD_REQUEST);
|
||||
$I->seeResponseIsJson();
|
||||
@@ -41,8 +41,8 @@ class CreateWorkingHoursCest
|
||||
$I->haveHttpHeader('accept', 'application/json');
|
||||
$I->haveHttpHeader('content-type', 'application/json');
|
||||
$I->sendPost('/working-hours', [
|
||||
'date' => '2020-01-15',
|
||||
'workingHours' => '08:00:00',
|
||||
'workingDay' => '2020-01-15',
|
||||
'workingTime' => '08:00:00',
|
||||
]);
|
||||
$I->seeResponseCodeIs(HttpCode::CONFLICT);
|
||||
$I->seeResponseIsJson();
|
||||
|
||||
Reference in New Issue
Block a user