Example #1
0
 public function testDelete(FunctionalTester $I)
 {
     $I->sendDELETE('/foo/3');
     $I->seeResponseCodeIs(204);
 }
Example #2
0
 public function testInternalServerError(FunctionalTester $I)
 {
     $I->sendDELETE('/foo/0');
     $I->seeResponseCodeIs(500);
     $I->seeResponseEquals(json_encode(['message' => 'Internal server error', 'code' => 500]));
 }