Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NFC] Fix test syntax #15067

Merged
merged 1 commit into from
Aug 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}

}