From 8580374cd39b23e863b40063e10d4bb39ff66278 Mon Sep 17 00:00:00 2001 From: colemanw Date: Wed, 3 Jan 2024 09:35:26 -0500 Subject: [PATCH] Cleanup dummy DAO in ruleGroupTest class The getReferenceColumns() is no longer needed and can just use the parent function. --- tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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', -- 2.25.1