* @throws \CiviCRM_API3_Exception
* @throws \Civi\Payment\Exception\PaymentProcessorException
*/
- public function testSubmitWithPCP() {
+ public function testSubmitWithPCP(): void {
+ $mut = new CiviMailUtils($this, TRUE);
+ $mut->clearMessages();
$params = $this->pcpParams();
$pcpID = $this->createPCPBlock($params);
$form = new CRM_Contribute_Form_Contribution();
], CRM_Core_Action::ADD);
$softCredit = $this->callAPISuccessGetSingle('ContributionSoft', []);
$this->assertEquals('Dobby', $softCredit['pcp_roll_nickname']);
+ $mut->checkMailLog(['Personal Campaign Page Owner Notification']);
}
/**
// The page contents load later by ajax, so there's just the surrounding
// html available now, but we can check at least one thing while we're here.
- $this->assertStringContainsString("selectedTab = 'widget';", $contents);
+ $this->assertContains("mainTabContainer", $contents);
}
}