|
@@ -399,8 +399,8 @@ class DolibarrSyncServiceTest extends TestCase
|
|
|
->expects(self::exactly(2))
|
|
->expects(self::exactly(2))
|
|
|
->method('getOrganizationPostalAddress')
|
|
->method('getOrganizationPostalAddress')
|
|
|
->willReturnMap([
|
|
->willReturnMap([
|
|
|
- [$organization1, $addressPostal],
|
|
|
|
|
- [$organization2, null],
|
|
|
|
|
|
|
+ [$organization1, $addressPostal],
|
|
|
|
|
+ [$organization2, null],
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
$this->addressPostalUtils
|
|
$this->addressPostalUtils
|
|
@@ -521,8 +521,8 @@ class DolibarrSyncServiceTest extends TestCase
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
$dolibarrSyncService->method('findDolibarrContactFor')->willReturnMap([
|
|
$dolibarrSyncService->method('findDolibarrContactFor')->willReturnMap([
|
|
|
- [$dolibarrSocietyContacts1, $person1, $contactData1],
|
|
|
|
|
- [$dolibarrSocietyContacts2, $person2, null],
|
|
|
|
|
|
|
+ [$dolibarrSocietyContacts1, $person1, $contactData1],
|
|
|
|
|
+ [$dolibarrSocietyContacts2, $person2, null],
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
$contactPoint1 = $this->getMockBuilder(ContactPoint::class)->getMock();
|
|
$contactPoint1 = $this->getMockBuilder(ContactPoint::class)->getMock();
|
|
@@ -538,8 +538,8 @@ class DolibarrSyncServiceTest extends TestCase
|
|
|
$contactPoint1->method('getMobilPhone')->willReturn($mobilePhone);
|
|
$contactPoint1->method('getMobilPhone')->willReturn($mobilePhone);
|
|
|
|
|
|
|
|
$dolibarrSyncService->method('getPersonContact')->willReturnMap([
|
|
$dolibarrSyncService->method('getPersonContact')->willReturnMap([
|
|
|
- [$person1, $contactPoint1],
|
|
|
|
|
- [$person2, null],
|
|
|
|
|
|
|
+ [$person1, $contactPoint1],
|
|
|
|
|
+ [$person2, null],
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
$dolibarrSyncService->method('formatContactPosition')->willReturnMap([
|
|
$dolibarrSyncService->method('formatContactPosition')->willReturnMap([
|