Skip to content

Commit

Permalink
Merge pull request #10525 from seamuslee001/contribution_test_rigger_fix
Browse files Browse the repository at this point in the history
(NFC) Fix clearing messages to ensure test accuracy
  • Loading branch information
eileenmcnaughton authored Jun 18, 2017
2 parents 8b1e918 + 247ce80 commit 862f66a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/phpunit/CRM/Contribute/Form/ContributionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function testSubmitCreditCard() {
*/
public function testSubmitCreditCardPayPal() {
$mut = new CiviMailUtils($this, TRUE);
$mut->clearMessages(0);
$mut->clearMessages();
$form = new CRM_Contribute_Form_Contribution();
$paymentProcessorID = $this->paymentProcessorCreate(array('is_test' => 0));
$form->_mode = 'Live';
Expand Down Expand Up @@ -246,6 +246,7 @@ public function testSubmitCreditCardPayPal() {
$msgs = $mut->getAllMessages();
$this->assertEquals(1, count($msgs));
}
$mut->clearMessages();
$mut->stop();
}

Expand All @@ -254,7 +255,7 @@ public function testSubmitCreditCardPayPal() {
*/
public function testSubmitCreditCardWithEmailReceipt() {
$mut = new CiviMailUtils($this, TRUE);
$mut->clearMessages(0);
$mut->clearMessages();
$form = new CRM_Contribute_Form_Contribution();
$form->_mode = 'Live';
$error = FALSE;
Expand Down

0 comments on commit 862f66a

Please sign in to comment.