PHP 7 is right: an empty string is not a valid JSON
This commit is contained in:
parent
b9bef69977
commit
38eecd64ff
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ $I = new ApiTester($scenario);
|
|||
$I->wantTo('see that create a new user fails if key knowledge header is not set');
|
||||
$I->sendPOST('/users', $userJson);
|
||||
$I->seeResponseCodeIs(500);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseEquals('');
|
||||
|
||||
try {
|
||||
$result = file_get_contents($usersDir . '0');
|
||||
|
|
|
@ -16,7 +16,7 @@ $I->wantTo('see that create a new user fails if key knowledge is wrong');
|
|||
$I->haveHTTPHeader('X-Croodle-Proof-Key-Knowledge', $wrongKeyKnowledge);
|
||||
$I->sendPOST('/users', $userJson);
|
||||
$I->seeResponseCodeIs(500);
|
||||
$I->seeResponseIsJson();
|
||||
$I->seeResponseEquals('');
|
||||
|
||||
try {
|
||||
$result = file_get_contents($usersDir . '0');
|
||||
|
|
Loading…
Reference in a new issue