Skip to content

Commit

Permalink
Merge pull request #15067 from seamuslee001/fix_test_syntax
Browse files Browse the repository at this point in the history
[NFC] Fix test syntax
  • Loading branch information
seamuslee001 authored Aug 18, 2019
2 parents 804b7e8 + 5b6ea05 commit 1292762
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,22 +543,22 @@ public function testNoteSubmission() {
$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
//and confirm that the note shown in the email is the current one
$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);
}

}

0 comments on commit 1292762

Please sign in to comment.