$actionInfo = \civicrm_api4($v4Entity, 'getActions', ['checkPermissions' => FALSE, 'where' => [['name', '=', $v4Action]]]);
}
catch (NotImplementedException $e) {
- // For now we'll mark the test incomplete if a v4 entity doesn't exit yet
- $this->markTestIncomplete($e->getMessage());
}
if (!isset($actionInfo[0])) {
throw new \Exception("Api4 $v4Entity $v4Action does not exist.");
$this->getContributionPageID());
$contribution = $this->callAPISuccessGetSingle('Contribution', ['contribution_page_id' => $this->getContributionPageID()]);
- $this->callAPISuccessGetSingle('MembershipPayment', ['contribution_id' => $contribution['id'], 'version' => 3]);
+ $this->callAPISuccessGetSingle('MembershipPayment', ['version' => 3, 'contribution_id' => $contribution['id']]);
//Assert only one mail is being sent.
$this->assertMailSentCount(1);
$this->assertMailSentContainingStrings([