Exemplo n.º 1
0
 /**
  * Get all the log tables that reference civicrm_contact.
  *
  * Note that it might make sense to wrap this in a getLogTablesForEntity
  * but this is the only entity currently available...
  */
 public function getLogTablesForContact()
 {
     $tables = array_keys(CRM_Dedupe_Merger::cidRefs());
     return array_intersect($tables, $this->tables);
 }
Exemplo n.º 2
0
 /**
  * The goal of this function is to test that all required tables are returned.
  */
 public function testGetCidRefs()
 {
     $this->entityCustomGroupWithSingleFieldCreate(__FUNCTION__, 'Contacts');
     $this->assertEquals(array_merge($this->getStaticCIDRefs(), $this->getHackedInCIDRef()), CRM_Dedupe_Merger::cidRefs());
     $this->assertEquals(array_merge($this->getCalculatedCIDRefs(), $this->getHackedInCIDRef()), CRM_Dedupe_Merger::cidRefs());
 }