CRM-19298 - ensure we get two receipts, with no total line.
authorJamie McClelland <jm@mayfirst.org>
Wed, 23 Nov 2016 18:32:00 +0000 (13:32 -0500)
committerJamie McClelland <jm@mayfirst.org>
Wed, 23 Nov 2016 18:32:00 +0000 (13:32 -0500)
tests/phpunit/api/v3/ContributionPageTest.php

index 2821ac7530a80452c669548fd6f7dd21789b42a0..ed0652eeac332df8df03f7d1c9d8981fea8c03c4 100644 (file)
@@ -439,10 +439,18 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
     $this->assertTrue(in_array($membershipPayment['contribution_id'], array_keys($contributions['values'])));
     $membership = $this->callAPISuccessGetSingle('membership', array('id' => $membershipPayment['membership_id']));
     $this->assertEquals($membership['contact_id'], $contributions['values'][$membershipPayment['contribution_id']]['contact_id']);
-    $mut->checkAllMailLog(array(
-      '$ 2.00',
-      'Membership Fee',
-    ));
+    // We should have two separate email messages, each with their own amount
+    // line and no total line.
+    $mut->checkAllMailLog(
+      array(
+        'Amount: $ 2.00',
+        'Amount: $ 10.00',
+        'Membership Fee',
+      ),
+      array(
+        'Total: $'
+      )
+    );
     $mut->stop();
     $mut->clearMessages(999);
   }