diff --git a/tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php b/tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php index 57ce71090442..16348ad33412 100644 --- a/tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php +++ b/tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php @@ -53,7 +53,6 @@ public function tearDown(): void { * @throws \API_Exception * @throws \CRM_Core_Exception * @throws \CiviCRM_API3_Exception - * @throws \Civi\API\Exception\UnauthorizedException */ public function testImportParserWithEmployeeOfRelationship(): void { $this->organizationCreate([ @@ -70,15 +69,15 @@ public function testImportParserWithEmployeeOfRelationship(): void { $values = array_values($contactImportValues); $userJobID = $this->getUserJobID([ 'mapper' => [['first_name'], ['last_name'], ['5_a_b', 'organization_name']], + 'onDuplicate' => CRM_Import_Parser::DUPLICATE_UPDATE, ]); $parser = new CRM_Contact_Import_Parser_Contact($fields); $parser->setUserJobID($userJobID); - $parser->_onDuplicate = CRM_Import_Parser::DUPLICATE_UPDATE; $parser->init(); $this->assertEquals(CRM_Import_Parser::VALID, $parser->import(CRM_Import_Parser::DUPLICATE_UPDATE, $values), 'Return code from parser import was not as expected'); - $this->callAPISuccess('Contact', 'get', [ + $this->callAPISuccessGetSingle('Contact', [ 'first_name' => 'Alok', 'last_name' => 'Patel', 'organization_name' => 'Agileware',