From 5b6ea055d51732a2df71235837dbbbcf646af209 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sun, 18 Aug 2019 14:37:08 +1000 Subject: [PATCH] [NFC] Fix test syntax --- tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php b/tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php index 479b7abc36..f07544b84a 100644 --- a/tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php +++ b/tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php @@ -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); } } -- 2.25.1