From 1c209e192142070c879ba6c2d441bc750cf6f52b Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 10 Dec 2018 07:32:03 +1100 Subject: [PATCH] Fix PHP7.2 Count error on test testImportParserWtihEmployeeOfRelationship --- tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php b/tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php index 76726ff9b1..0f059129d6 100644 --- a/tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php +++ b/tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php @@ -64,12 +64,12 @@ class CRM_Contact_Import_Parser_ContactTest extends CiviUnitTestCase { $fields = array_keys($contactImportValues); $values = array_values($contactImportValues); - $parser = new CRM_Contact_Import_Parser_Contact($fields, NULL); + $parser = new CRM_Contact_Import_Parser_Contact($fields, []); $parser->_contactType = 'Individual'; $parser->init(); $this->mapRelationshipFields($fields, $parser->getAllFields()); - $parser = new CRM_Contact_Import_Parser_Contact($fields, NULL, NULL, NULL, array( + $parser = new CRM_Contact_Import_Parser_Contact($fields, [], [], [], array( NULL, NULL, $fields[2], @@ -81,7 +81,7 @@ class CRM_Contact_Import_Parser_ContactTest extends CiviUnitTestCase { NULL, NULL, "organization_name", - ), NULL, NULL, NULL, NULL, NULL); + ), [], [], [], [], []); $parser->_contactType = 'Individual'; $parser->_onDuplicate = CRM_Import_Parser::DUPLICATE_UPDATE; -- 2.25.1