Skip to content

Commit

Permalink
Fix alert json format
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Hamon committed Jan 17, 2017
1 parent eed01da commit 6f2e1a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/2_Integration/05-Results/ApiAlertsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ class ApiAlertsTest extends CommonTestCase
*/
public function POSTrequests()
{
$json_alerts = '{ "alerts" :';
$json_alerts = '{ "alerts" : [';
$json_alerts .= $this->getJsonForAlert(1483605762, "Pdf.Dropper.Agent-1507034");
$json_alerts .= $this->getJsonForAlert(1483605770, "Pdf.Dropper.Agent-1507034");
$json_alerts .= $this->getJsonForAlert(1483605777, "Win.Trojan.Elpapok-1");
$json_alerts = rtrim($json_alerts, ",");
$json_alerts .= '}';
$json_alerts .= ']';

$this->insertAlerts($json_alerts, 2, "4C4C4544-0033-4A10-8051-FFFFFFFFFFFF");
$this->insertAlerts($json_alerts, 3, "4C4C4544-0033-4A10-8051-BBBBBBBBBBBB");
Expand Down

0 comments on commit 6f2e1a8

Please sign in to comment.