Revert REST API init objects array (#231)

We didn't anticipated this was causing the REST API response to be changed for all consumers :
- before PR `"objects":null`
- after `"objects":[]`

We don't want that :/

We will instead fix collector-base (object of another PR, see #231)

This reverts commit 7243da3576.
This reverts commit 0940741568.
This commit is contained in:
Pierre Goiffon
2022-01-17 18:34:33 +01:00
parent 739001eca4
commit c6211cde09
2 changed files with 1 additions and 9 deletions

View File

@@ -180,7 +180,7 @@ JSON;
$this->assertContains($sExpectedJsonOuput, $this->DeleteTicketFromApi($iId));
$sExpectedJsonOuput=<<<JSON
{"objects":[],"code":0,"message":"Found: 0"}
{"objects":null,"code":0,"message":"Found: 0"}
JSON;
$this->assertEquals($sExpectedJsonOuput, $this->GetTicketViaRest($iId));
}