* Include class definitions
*/
require_once 'CiviTest/CiviUnitTestCase.php';
+require_once 'CiviTest/CiviMailUtils.php';
require_once 'HTML/QuickForm/Page.php';
*/
public function testSubmitRecurCompleteInstant() {
$form = $this->getForm();
-
+ $mut = new CiviMailUtils($this, TRUE);
$processor = Civi\Payment\System::singleton()->getById($this->_paymentProcessorID);
$processor->setDoDirectPaymentResult(array(
'payment_status_id' => 1,
'entity_table' => 'civicrm_membership',
'contribution_id' => $contribution['id'],
), 1);
+ $mut->checkMailLog(array(
+ '===========================================================
+Billing Name and Address
+===========================================================
+Test
+10 Test St
+Test, AR 90210
+US',
+ '===========================================================
+Membership Information
+===========================================================
+Membership Type: AnnualFixed
+Membership Start Date: ',
+ '===========================================================
+Credit Card Information
+===========================================================
+Visa
+************1111
+Expires: ',
+ )
+ );
+ $mut->stop();
}
'billing_state_province_id-5' => '1003',
'billing_postal_code-5' => '90210',
'billing_country_id-5' => '1228',
+ 'send_receipt' => 1,
);
return $params;
}