projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Towards CRM-20155 remove duplicate calls to dedupe functions.
[civicrm-core.git]
/
tests
/
phpunit
/
CRM
/
Dedupe
/
DedupeFinderTest.php
diff --git
a/tests/phpunit/CRM/Dedupe/DedupeFinderTest.php
b/tests/phpunit/CRM/Dedupe/DedupeFinderTest.php
index 4799a4f4a0456bac031929f3fb81ca94a8b9af82..417fb63f79065d5021f198f44519e7b0ed212cd5 100644
(file)
--- a/
tests/phpunit/CRM/Dedupe/DedupeFinderTest.php
+++ b/
tests/phpunit/CRM/Dedupe/DedupeFinderTest.php
@@
-1,7
+1,5
@@
<?php
<?php
-require_once 'CiviTest/Contact.php';
-
/**
* Class CRM_Dedupe_DedupeFinderTest
* @group headless
/**
* Class CRM_Dedupe_DedupeFinderTest
* @group headless
@@
-205,8
+203,7
@@
class CRM_Dedupe_DedupeFinderTest extends CiviUnitTestCase {
'street_address' => 'Ambachtstraat 23',
);
CRM_Core_TemporaryErrorScope::useException();
'street_address' => 'Ambachtstraat 23',
);
CRM_Core_TemporaryErrorScope::useException();
- $dedupeParams = CRM_Dedupe_Finder::formatParams($fields, 'Individual');
- $ids = CRM_Dedupe_Finder::dupesByParams($dedupeParams, 'Individual', 'General');
+ $ids = CRM_Contact_BAO_Contact::getDuplicateContacts($fields, 'Individual', 'General');
// Check with default Individual-General rule
$this->assertEquals(count($ids), 2, 'Check Individual-General rule for dupesByParams().');
// Check with default Individual-General rule
$this->assertEquals(count($ids), 2, 'Check Individual-General rule for dupesByParams().');