|
@@ -390,7 +390,7 @@ class DolibarrSyncServiceTest extends TestCase
|
|
|
// Find by full name (contact already has another person id, it should not be returned)
|
|
// Find by full name (contact already has another person id, it should not be returned)
|
|
|
$person2 = $this->getMockBuilder(Person::class)->getMock();
|
|
$person2 = $this->getMockBuilder(Person::class)->getMock();
|
|
|
$person2->method('getId')->willReturn(-1);
|
|
$person2->method('getId')->willReturn(-1);
|
|
|
- $person2->method('getName')->willReturn('DUPONT');
|
|
|
|
|
|
|
+ $person2->method('getName')->willReturn('dupont');
|
|
|
$person2->method('getGivenName')->willReturn('Valerie');
|
|
$person2->method('getGivenName')->willReturn('Valerie');
|
|
|
|
|
|
|
|
$contact2 = TestableDolibarrSyncService::findDolibarrContactFor($contacts, $person2);
|
|
$contact2 = TestableDolibarrSyncService::findDolibarrContactFor($contacts, $person2);
|