Skip to content

Commit

Permalink
Merge pull request #28851 from colemanw/ruleGroupTestCleanup
Browse files Browse the repository at this point in the history
[NFC] Cleanup dummy DAO in ruleGroupTest class
  • Loading branch information
eileenmcnaughton authored Jan 3, 2024
2 parents 74ee2b3 + 8580374 commit c16546a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -38,6 +27,7 @@ public static function &fields() {
'table_name' => 'civicrm_dedupe_test_table',
'entity' => 'TestEntity',
'FKClassName' => 'CRM_Contact_DAO_Contact',
'FKColumnName' => 'id',
],
'dedupe_test_field' => [
'name' => 'dedupe_test_field',
Expand Down

0 comments on commit c16546a

Please sign in to comment.