projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NFC] CRM-19033 improve standardisation of tests
[civicrm-core.git]
/
tests
/
phpunit
/
CRM
/
Contact
/
BAO
/
GroupContactTest.php
diff --git
a/tests/phpunit/CRM/Contact/BAO/GroupContactTest.php
b/tests/phpunit/CRM/Contact/BAO/GroupContactTest.php
index 719948faeb3f14a591480f6b582aab8d26a2a204..3e624ac3e218a44562b6717eff78d2d41f44b8d0 100644
(file)
--- a/
tests/phpunit/CRM/Contact/BAO/GroupContactTest.php
+++ b/
tests/phpunit/CRM/Contact/BAO/GroupContactTest.php
@@
-122,7
+122,7
@@
class CRM_Contact_BAO_GroupContactTest extends CiviUnitTestCase {
'last_name' => 'Parent1 Lname',
'group' => array($parentGroup->id => 1),
);
'last_name' => 'Parent1 Lname',
'group' => array($parentGroup->id => 1),
);
- $parentContact =
Contact::createIndividual
($parentContactParams);
+ $parentContact =
$this->individualCreate
($parentContactParams);
// create a contact within child dgroup
$childContactParams = array(
// create a contact within child dgroup
$childContactParams = array(
@@
-130,7
+130,7
@@
class CRM_Contact_BAO_GroupContactTest extends CiviUnitTestCase {
'last_name' => 'Child2 Lname',
'group' => array($childGroup->id => 1),
);
'last_name' => 'Child2 Lname',
'group' => array($childGroup->id => 1),
);
- $childContact =
Contact::createIndividual
($childContactParams);
+ $childContact =
$this->individualCreate
($childContactParams);
// Check if searching by parent group returns both parent and child group contacts
$searchParams = array(
// Check if searching by parent group returns both parent and child group contacts
$searchParams = array(