|
@@ -57,7 +57,7 @@ class DolibarrApiServiceTest extends TestCase
|
|
|
$dolibarrApiService
|
|
$dolibarrApiService
|
|
|
->expects(self::once())
|
|
->expects(self::once())
|
|
|
->method('getJsonContent')
|
|
->method('getJsonContent')
|
|
|
- ->with('thirdparties', ['limit' => '1', 'sqlfilters' => 'ref_int='.$organizationId])
|
|
|
|
|
|
|
+ ->with('thirdparties', ['limit' => '1', 'sqlfilters' => '(ef.2iopen_organization_id:=:'.$organizationId.')'])
|
|
|
->willThrowException(new HttpException(404));
|
|
->willThrowException(new HttpException(404));
|
|
|
|
|
|
|
|
$society = $dolibarrApiService->getSociety($organizationId);
|
|
$society = $dolibarrApiService->getSociety($organizationId);
|
|
@@ -82,7 +82,7 @@ class DolibarrApiServiceTest extends TestCase
|
|
|
$dolibarrApiService
|
|
$dolibarrApiService
|
|
|
->expects(self::once())
|
|
->expects(self::once())
|
|
|
->method('getJsonContent')
|
|
->method('getJsonContent')
|
|
|
- ->with('thirdparties', ['limit' => '1', 'sqlfilters' => 'ref_int='.$organizationId])
|
|
|
|
|
|
|
+ ->with('thirdparties', ['limit' => '1', 'sqlfilters' => '(ef.2iopen_organization_id:=:'.$organizationId.')'])
|
|
|
->willThrowException($e);
|
|
->willThrowException($e);
|
|
|
|
|
|
|
|
$this->expectException($e::class);
|
|
$this->expectException($e::class);
|