From: colemanw Date: Wed, 3 Jan 2024 14:35:26 +0000 (-0500) Subject: Cleanup dummy DAO in ruleGroupTest class X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8580374cd39b23e863b40063e10d4bb39ff66278;p=civicrm-core.git Cleanup dummy DAO in ruleGroupTest class The getReferenceColumns() is no longer needed and can just use the parent function. --- diff --git a/tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php b/tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php index 1ad07687c0..9ee835ebab 100644 --- a/tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php +++ b/tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php @@ -2,18 +2,7 @@ class CRM_Dedupe_DAO_TestEntity extends CRM_Core_DAO { - /** - * Returns foreign keys and entity references. - * - * @return array - * [CRM_Core_Reference_Interface] - */ - public static function getReferenceColumns() { - if (!isset(Civi::$statics[__CLASS__]['links'])) { - Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic('civicrm_dedupe_test_table', 'contact_id', 'civicrm_contact', 'id'); - } - return Civi::$statics[__CLASS__]['links']; - } + public static $_tableName = 'civicrm_dedupe_test_table'; /** * Returns all the column names of this table @@ -38,6 +27,7 @@ class CRM_Dedupe_DAO_TestEntity extends CRM_Core_DAO { 'table_name' => 'civicrm_dedupe_test_table', 'entity' => 'TestEntity', 'FKClassName' => 'CRM_Contact_DAO_Contact', + 'FKColumnName' => 'id', ], 'dedupe_test_field' => [ 'name' => 'dedupe_test_field',