-
-
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 #12694 from eileenmcnaughton/mem_1
Deduplicate setting of mailSent message
- Loading branch information
Showing
3 changed files
with
45 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -464,6 +464,7 @@ public function testFormRuleFixedJoin6MonthsAgo() { | |
* @dataProvider getThousandSeparators | ||
*/ | ||
public function testSubmit($thousandSeparator) { | ||
CRM_Core_Session::singleton()->getStatus(TRUE); | ||
$this->setCurrencySeparators($thousandSeparator); | ||
$form = $this->getForm(); | ||
$form->preProcess(); | ||
|
@@ -472,7 +473,7 @@ public function testSubmit($thousandSeparator) { | |
$this->createLoggedInUser(); | ||
$params = array( | ||
'cid' => $this->_individualId, | ||
'join_date' => date('m/d/Y', time()), | ||
'join_date' => date('2/d/Y', time()), | ||
'start_date' => '', | ||
'end_date' => '', | ||
// This format reflects the 23 being the organisation & the 25 being the type. | ||
|
@@ -545,6 +546,14 @@ public function testSubmit($thousandSeparator) { | |
'Receipt text', | ||
)); | ||
$this->mut->stop(); | ||
$this->assertEquals([ | ||
[ | ||
'text' => 'AnnualFixed membership for Mr. Anthony Anderson II has been added. The new membership End Date is December 31st, ' . date('Y') . '. A membership confirmation and receipt has been sent to [email protected].', | ||
'title' => 'Complete', | ||
'type' => 'success', | ||
'options' => NULL, | ||
], | ||
], CRM_Core_Session::singleton()->getStatus()); | ||
} | ||
|
||
/** | ||
|