Skip to content
Snippets Groups Projects
Unverified Commit 2dbcd8a1 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #24256 from seamuslee001/5.53

[NFC] Convert Payment Processor ID field to payment processor in even…
parents 1a6e5fbe 1481d5df
Branches
Tags
No related merge requests found
......@@ -1137,7 +1137,9 @@ class CiviUnitTestCase extends PHPUnit\Framework\TestCase {
'is_show_location' => 0,
'is_email_confirm' => 1,
], $params);
if (!empty($params['payment_processor_id'])) {
$params['payment_processor'] = is_array($params['payment_processor_id']) ? $params['payment_processor_id'] : [$params['payment_processor_id']];
}
$event = Event::create(FALSE)->setValues($params)->execute()->first();
$this->ids['event'][] = $event['id'];
return $event;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment