-
-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21855 from eileenmcnaughton/part
Add test for selvsvctransfer, remove use of `$contact` from template
- Loading branch information
Showing
11 changed files
with
3,883 additions
and
3,792 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/* | ||
+--------------------------------------------------------------------+ | ||
| Copyright CiviCRM LLC. All rights reserved. | | ||
| | | ||
| This work is published under the GNU AGPLv3 license with some | | ||
| permitted exceptions and without any warranty. For full license | | ||
| and copyright information, see https://civicrm.org/licensing | | ||
+--------------------------------------------------------------------+ | ||
*/ | ||
|
||
use Civi\WorkflowMessage\GenericWorkflowMessage; | ||
|
||
/** | ||
* Notification that a registration has been transferred to a different person. | ||
* | ||
* @support template-only | ||
* | ||
* @see CRM_Event_BAO_Participant::sendTransitionParticipantMail | ||
*/ | ||
class CRM_Event_WorkflowMessage_ParticipantTransferred extends GenericWorkflowMessage { | ||
|
||
public const WORKFLOW = 'participant_transferred'; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,4 +48,4 @@ | |
'tr_TR' => 'Turkish', | ||
'uk_UA' => 'Ukrainian', | ||
'vi_VN' => 'Vietnamese', | ||
); | ||
); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/** | ||
* Test CRM_Event_Form_Registration functions. | ||
* | ||
* @package CiviCRM | ||
* @group headless | ||
*/ | ||
class CRM_Event_Form_SelfSvcTransferTest extends CiviUnitTestCase { | ||
|
||
/** | ||
* Test cancellation. | ||
* | ||
* @throws \CRM_Core_Exception | ||
* @throws \CiviCRM_API3_Exception | ||
*/ | ||
public function testCancel(): void { | ||
$_REQUEST['pid'] = $this->participantCreate(['status_id' => 'Registered']); | ||
$_REQUEST['is_backoffice'] = 1; | ||
$this->addLocationBlockToDomain(); | ||
$this->individualCreate(['email' => '[email protected]']); | ||
$mut = new CiviMailUtils($this); | ||
/* @var CRM_Event_Form_SelfSvcTransfer $form*/ | ||
$form = $this->getFormObject('CRM_Event_Form_SelfSvcTransfer', [ | ||
'email' => '[email protected]', | ||
]); | ||
$form->buildForm(); | ||
$form->postProcess(); | ||
$emails = $mut->getAllMessages(); | ||
$this->assertStringContainsString('Registration Confirmation - Annual CiviCRM meet - Mr. Anthony', $emails[0]); | ||
$this->assertStringContainsString('<p>Dear Anthony,</p> <p>Your Event Registration has been Transferred to Anthony Anderson.</p>', $emails[1]); | ||
$this->assertStringContainsString('[email protected]', $emails[1]); | ||
$this->assertStringContainsString('123', $emails[1]); | ||
$this->assertStringContainsString('[email protected]', $emails[1]); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters