'rule_weight' => 10,
'rule_field' => 'phone_numeric',
]);
- $fields = CRM_Contribute_BAO_Contribution::importableFields();
+ $userJobID = UserJob::create()->setValues(['job_type:name' => 'Import Contributions', 'status_id:name' => 'Draft', 'metadata' => ['contactType' => 'Individual']])->execute()->first()['id'];
+ $parser = new CRM_Contribute_Import_Parser_Contribution();
+ $parser ->setUserJobID($userJobID);
+ $fields = $parser->getAvailableFields();
$this->assertArrayHasKey('phone', $fields);
$this->callApiSuccess('RuleGroup', 'create', [
'id' => $unsupervisedRuleGroup['id'],