You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class TestParser extends \PHPUnit_Framework_TestCase{
13
14
@@ -283,39 +284,39 @@ function parseDataProvider(){
283
284
]),
284
285
'PhpPlatform\Tests\SearchQueryParser\Models\M1',
285
286
null,
286
-
['filters'=>[],'sort'=>[],'pagination'=>null,'where'=>"(m1.NAME LIKE '%abcd%') OR (m1.USER_NAME LIKE '%abcd%') OR (m1.M3_ID LIKE '%abcd%') OR (m3.NAME LIKE '%abcd%') OR (m3.PHONE LIKE '%abcd%')"]
287
+
['filters'=>[],'sort'=>[],'pagination'=>null,'where'=>"(m1.NAME LIKE '%abcd%') OR (m1.USER_NAME LIKE '%abcd%') OR (m1.M3_ID LIKE '%abcd%') OR (m3_M3_ID.NAME LIKE '%abcd%') OR (m3_M3_ID.PHONE LIKE '%abcd%')"]
287
288
],
288
289
"with full text search for child class"=>[
289
290
$this->getHttpRequestWithQueryParameters([
290
291
'q'=>'abcd'
291
292
]),
292
293
'PhpPlatform\Tests\SearchQueryParser\Models\M2',
293
294
null,
294
-
['filters'=>[],'sort'=>[],'pagination'=>null,'where'=>"(m2.ADDRESS LIKE '%abcd%') OR (m1.NAME LIKE '%abcd%') OR (m1.USER_NAME LIKE '%abcd%') OR (m1.M3_ID LIKE '%abcd%') OR (m3.NAME LIKE '%abcd%') OR (m3.PHONE LIKE '%abcd%')"]
295
+
['filters'=>[],'sort'=>[],'pagination'=>null,'where'=>"(m2.ADDRESS LIKE '%abcd%') OR (m1.NAME LIKE '%abcd%') OR (m1.USER_NAME LIKE '%abcd%') OR (m1.M3_ID LIKE '%abcd%') OR (m3_M3_ID.NAME LIKE '%abcd%') OR (m3_M3_ID.PHONE LIKE '%abcd%')"]
295
296
],
296
297
"with full text search excluding a field"=>[
297
298
$this->getHttpRequestWithQueryParameters([
298
299
'q'=>'abcd'
299
300
]),
300
301
'PhpPlatform\Tests\SearchQueryParser\Models\M1',
301
302
['name'],
302
-
['filters'=>[],'sort'=>[],'pagination'=>null,'where'=>"(m1.USER_NAME LIKE '%abcd%') OR (m1.M3_ID LIKE '%abcd%') OR (m3.NAME LIKE '%abcd%') OR (m3.PHONE LIKE '%abcd%')"]
303
+
['filters'=>[],'sort'=>[],'pagination'=>null,'where'=>"(m1.USER_NAME LIKE '%abcd%') OR (m1.M3_ID LIKE '%abcd%') OR (m3_M3_ID.NAME LIKE '%abcd%') OR (m3_M3_ID.PHONE LIKE '%abcd%')"]
303
304
],
304
305
"with full text search for child class and excluding a field"=>[
305
306
$this->getHttpRequestWithQueryParameters([
306
307
'q'=>'abcd'
307
308
]),
308
309
'PhpPlatform\Tests\SearchQueryParser\Models\M2',
309
310
['userName','address'],
310
-
['filters'=>[],'sort'=>[],'pagination'=>null,'where'=>"(m1.NAME LIKE '%abcd%') OR (m1.M3_ID LIKE '%abcd%') OR (m3.NAME LIKE '%abcd%') OR (m3.PHONE LIKE '%abcd%')"]
311
+
['filters'=>[],'sort'=>[],'pagination'=>null,'where'=>"(m1.NAME LIKE '%abcd%') OR (m1.M3_ID LIKE '%abcd%') OR (m3_M3_ID.NAME LIKE '%abcd%') OR (m3_M3_ID.PHONE LIKE '%abcd%')"]
311
312
],
312
313
"with full text search for child class and excluding a foreign field"=>[
313
314
$this->getHttpRequestWithQueryParameters([
314
315
'q'=>'abcd'
315
316
]),
316
317
'PhpPlatform\Tests\SearchQueryParser\Models\M2',
317
318
['userName','address','m3Id','m3Name'],
318
-
['filters'=>[],'sort'=>[],'pagination'=>null,'where'=>"(m1.NAME LIKE '%abcd%') OR (m3.PHONE LIKE '%abcd%')"]
319
+
['filters'=>[],'sort'=>[],'pagination'=>null,'where'=>"(m1.NAME LIKE '%abcd%') OR (m3_M3_ID.PHONE LIKE '%abcd%')"]
319
320
],
320
321
321
322
];
@@ -341,14 +342,22 @@ private function getHttpRequestWithQueryParameters($queryParams){
0 commit comments