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
@@ -252,21 +283,43 @@ function parseDataProvider(){
252
283
]),
253
284
'PhpPlatform\Tests\SearchQueryParser\Models\M1',
254
285
null,
255
-
['filters'=>[],'sort'=>[],'pagination'=>null,'where'=>"(m1.NAME LIKE '%abcd%') OR (m1.USER_NAME LIKE '%abcd%')"]
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%')"]
256
287
],
257
288
"with full text search for child class"=>[
258
289
$this->getHttpRequestWithQueryParameters([
259
290
'q'=>'abcd'
260
291
]),
261
292
'PhpPlatform\Tests\SearchQueryParser\Models\M2',
262
293
null,
263
-
['filters'=>[],'sort'=>[],'pagination'=>null,'where'=>"(m2.ADDRESS LIKE '%abcd%') OR (m1.NAME LIKE '%abcd%') OR (m1.USER_NAME LIKE '%abcd%')"]
264
-
]
265
-
266
-
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
+
],
296
+
"with full text search excluding a field"=>[
297
+
$this->getHttpRequestWithQueryParameters([
298
+
'q'=>'abcd'
299
+
]),
300
+
'PhpPlatform\Tests\SearchQueryParser\Models\M1',
301
+
['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
+
],
304
+
"with full text search for child class and excluding a field"=>[
305
+
$this->getHttpRequestWithQueryParameters([
306
+
'q'=>'abcd'
307
+
]),
308
+
'PhpPlatform\Tests\SearchQueryParser\Models\M2',
309
+
['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
+
],
312
+
"with full text search for child class and excluding a foreign field"=>[
313
+
$this->getHttpRequestWithQueryParameters([
314
+
'q'=>'abcd'
315
+
]),
316
+
'PhpPlatform\Tests\SearchQueryParser\Models\M2',
317
+
['userName','address','m3Id','m3Name'],
318
+
['filters'=>[],'sort'=>[],'pagination'=>null,'where'=>"(m1.NAME LIKE '%abcd%') OR (m3.PHONE LIKE '%abcd%')"]
319
+
],
267
320
268
321
];
269
-
//return [$cases['with pagination wrong format 3']];
322
+
//return [$cases['with filters for foreign fields']];
270
323
return$cases;
271
324
}
272
325
@@ -288,12 +341,14 @@ private function getHttpRequestWithQueryParameters($queryParams){
0 commit comments