[NFC] Fix test syntax
authorSeamus Lee <seamuslee001@gmail.com>
Sun, 18 Aug 2019 04:37:08 +0000 (14:37 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Sun, 18 Aug 2019 04:37:08 +0000 (14:37 +1000)
tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php

index 479b7abc36be67a3052a1535895800575878cc37..f07544b84a86abf1dd3a862d92b7c57c790df2a0 100644 (file)
@@ -543,7 +543,7 @@ class CRM_Event_Form_Registration_ConfirmTest extends CiviUnitTestCase {
     $event = $this->creatEventWithProfile(NULL);
     $event['custom_pre_id'] = $this->ids["UFGroup"]["our profile"];
     $event['note'] = "This is note 1";
-    [$contact_id, $participant_id] = $this->submitWithNote($event, NULL);
+    list($contact_id, $participant_id) = $this->submitWithNote($event, NULL);
     civicrm_api3('Participant', 'delete', ['id' => $participant_id]);
 
     //now that the contact has one note, register this contact again with a different note
@@ -551,14 +551,14 @@ class CRM_Event_Form_Registration_ConfirmTest extends CiviUnitTestCase {
     $event = $this->creatEventWithProfile($event);
     $event['custom_pre_id'] = $this->ids["UFGroup"]["our profile"];
     $event['note'] = "This is note 2";
-    [$contact_id, $participant_id] = $this->submitWithNote($event, $contact_id);
+    list($contact_id, $participant_id) = $this->submitWithNote($event, $contact_id);
     civicrm_api3('Participant', 'delete', ['id' => $participant_id]);
 
     //finally, submit a blank note and confirm that the note shown in the email is blank
     $event = $this->creatEventWithProfile($event);
     $event['custom_pre_id'] = $this->ids["UFGroup"]["our profile"];
     $event['note'] = "";
-    [$contact_id, $participant_id] = $this->submitWithNote($event, $contact_id);
+    list($contact_id, $participant_id) = $this->submitWithNote($event, $contact_id);
   }
 
 }