}
+ /**
+ * Test that we do not get a fatal error when our rule group is a custom date field.
+ *
+ * @throws \CRM_Core_Exception
+ */
+ public function testCustomRuleCustomDateField() {
+
+ $ruleGroup = $this->createRuleGroup();
+ $this->createCustomGroupWithFieldOfType([], 'date');
+ $this->callAPISuccess('Rule', 'create', [
+ 'dedupe_rule_group_id' => $ruleGroup['id'],
+ 'rule_table' => $this->getCustomGroupTable(),
+ 'rule_weight' => 4,
+ 'rule_field' => $this->getCustomFieldColumnName('date'),
+ ]);
+
+ CRM_Dedupe_Finder::dupes($ruleGroup['id']);
+ }
+
/**
* Test a custom rule with a non-default field.
+ *
+ * @throws \CRM_Core_Exception
*/
public function testCustomRuleWithAddress() {
$this->setupForGroupDedupe();