The json delete method in PHPUnit does not work #45408
Replies: 1 comment 5 replies
-
unit tests extend |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
In PHPunit, I would like to send a delete request using a json method as follows:
$this->json('delete', '/api/roles/99', [])
But it will return this:
/var/www/html/tests/Unit/RoleTest.php:16
ERRORS!
Tests: 2, Assertions: 1, Errors: 1.
Steps To Reproduce:
Beta Was this translation helpful? Give feedback.
All reactions