->execute()->column('id');
$this->assertCount(3, $found);
- $this->assertContains($testContacts[0], $found);
- $this->assertContains($testContacts[1], $found);
- $this->assertContains($testContacts[3], $found);
+ $this->assertContainsEquals($testContacts[0], $found);
+ $this->assertContainsEquals($testContacts[1], $found);
+ $this->assertContainsEquals($testContacts[3], $found);
$found = Contact::getDuplicates(FALSE)
->setDedupeRule('customRule')
->execute()->column('id');
$this->assertCount(2, $found);
- $this->assertContains($testContacts[2], $found);
- $this->assertContains($testContacts[4], $found);
+ $this->assertContainsEquals($testContacts[2], $found);
+ $this->assertContainsEquals($testContacts[4], $found);
}
public function testMergeDuplicates():void {
->addValue('html_type', 'Text')
)
->execute()->single();
- $this->assertContains($financialType['id'], $contributionGroup['extends_entity_column_value']);
+ $this->assertContainsEquals($financialType['id'], $contributionGroup['extends_entity_column_value']);
$getFieldsWithTestType = Contribution::getFields(FALSE)
->addValue('financial_type_id:name', 'Test_Type')