Fix PHP7.2 Count error on test testImportParserWtihEmployeeOfRelationship
authorSeamus Lee <seamuslee001@gmail.com>
Sun, 9 Dec 2018 20:32:03 +0000 (07:32 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Sun, 9 Dec 2018 20:32:03 +0000 (07:32 +1100)
tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php

index bb9bf2939a060bc515677c80a59094bfd6ab9a96..053dc2efb4fef97c53c923fc1996070246409019 100644 (file)
@@ -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;