mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Теперь при передаче запроса как json, закодированный в теле, он автоматически парсится
This commit is contained in:
@@ -98,17 +98,6 @@ class UsernamesToUuidsCest {
|
||||
]);
|
||||
}
|
||||
|
||||
public function passWrongPostBody(FunctionalTester $I) {
|
||||
$I->wantTo('get specific response when pass invalid json string');
|
||||
$this->route->uuidsByUsernames('wrong-json');
|
||||
$I->canSeeResponseCodeIs(400);
|
||||
$I->canSeeResponseIsJson();
|
||||
$I->canSeeResponseContainsJson([
|
||||
'error' => 'IllegalArgumentException',
|
||||
'errorMessage' => 'Passed array of profile names is an invalid JSON string.',
|
||||
]);
|
||||
}
|
||||
|
||||
private function validateFewValidUsernames(FunctionalTester $I) {
|
||||
$I->canSeeResponseCodeIs(200);
|
||||
$I->canSeeResponseIsJson();
|
||||
|
Reference in New Issue
Block a user