| @@ 1029-1053 (lines=25) @@ | ||
| 1026 | /** |
|
| 1027 | * @return array |
|
| 1028 | */ |
|
| 1029 | public function findByExtrefProvider() |
|
| 1030 | { |
|
| 1031 | return [ |
|
| 1032 | 'find a linked record when searching for "tablet" ref by array field' => [ |
|
| 1033 | 'nestedApps.0.$ref', |
|
| 1034 | 'http://localhost/core/app/tablet', |
|
| 1035 | 1 |
|
| 1036 | ], |
|
| 1037 | 'find a linked record when searching for "admin" ref by array field' => [ |
|
| 1038 | 'nestedApps.0.$ref', |
|
| 1039 | 'http://localhost/core/app/admin', |
|
| 1040 | 1 |
|
| 1041 | ], |
|
| 1042 | 'find nothing when searching for inextistant (and unlinked) ref by array field' => [ |
|
| 1043 | 'nestedApps.0.$ref', |
|
| 1044 | 'http://localhost/core/app/inexistant', |
|
| 1045 | 0 |
|
| 1046 | ], |
|
| 1047 | 'return nothing when searching with incomplete ref by array field' => [ |
|
| 1048 | 'nestedApps.0.$ref', |
|
| 1049 | 'http://localhost/core/app', |
|
| 1050 | 0 |
|
| 1051 | ], |
|
| 1052 | ]; |
|
| 1053 | } |
|
| 1054 | } |
|
| 1055 | ||
| @@ 292-316 (lines=25) @@ | ||
| 289 | /** |
|
| 290 | * @return array |
|
| 291 | */ |
|
| 292 | public function findByAppRefProvider() |
|
| 293 | { |
|
| 294 | return [ |
|
| 295 | 'find all tablet records' => [ |
|
| 296 | 'app.$ref', |
|
| 297 | 'http://localhost/core/app/tablet', |
|
| 298 | 5 |
|
| 299 | ], |
|
| 300 | 'find a linked record when searching for ref' => [ |
|
| 301 | 'app.$ref', |
|
| 302 | 'http://localhost/core/app/admin', |
|
| 303 | 1 |
|
| 304 | ], |
|
| 305 | 'find nothing when searching for inextistant (and unlinked) ref' => [ |
|
| 306 | 'app.$ref', |
|
| 307 | 'http://localhost/core/app/inexistant', |
|
| 308 | 0 |
|
| 309 | ], |
|
| 310 | 'return nothing when searching with incomplete ref' => [ |
|
| 311 | 'app.$ref', |
|
| 312 | 'http://localhost/core/app', |
|
| 313 | 0 |
|
| 314 | ], |
|
| 315 | ]; |
|
| 316 | } |
|
| 317 | ||
| 318 | /** |
|
| 319 | * Apply RQL operators to extref fields |
|