Skip to content

Commit

Permalink
Throw error when JSON en/decoding fails
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Nov 1, 2023
1 parent 97267de commit bbf6d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/tests/Unit/Controller/API/AccountBaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,6 @@ public function provideNewAccountFileNoPassword(): Generator
$userData['type'] = 'admin';
$userData['id'] = $userData['username'];
yield [Yaml::dump([$userData], 1), 'yaml'];
yield [json_encode([$userData]), 'json'];
yield [json_encode([$userData], JSON_THROW_ON_ERROR), 'json'];
}
}

0 comments on commit bbf6d59

Please sign in to comment.