| @@ 1028-1052 (lines=25) @@ | ||
| 1025 | /** |
|
| 1026 | * @return array |
|
| 1027 | */ |
|
| 1028 | public function findByExtrefProvider() |
|
| 1029 | { |
|
| 1030 | return [ |
|
| 1031 | 'find a linked record when searching for "tablet" ref by array field' => [ |
|
| 1032 | 'nestedApps.0.$ref', |
|
| 1033 | 'http://localhost/core/app/tablet', |
|
| 1034 | 1 |
|
| 1035 | ], |
|
| 1036 | 'find a linked record when searching for "admin" ref by array field' => [ |
|
| 1037 | 'nestedApps.0.$ref', |
|
| 1038 | 'http://localhost/core/app/admin', |
|
| 1039 | 1 |
|
| 1040 | ], |
|
| 1041 | 'find nothing when searching for inextistant (and unlinked) ref by array field' => [ |
|
| 1042 | 'nestedApps.0.$ref', |
|
| 1043 | 'http://localhost/core/app/inexistant', |
|
| 1044 | 0 |
|
| 1045 | ], |
|
| 1046 | 'return nothing when searching with incomplete ref by array field' => [ |
|
| 1047 | 'nestedApps.0.$ref', |
|
| 1048 | 'http://localhost/core/app', |
|
| 1049 | 0 |
|
| 1050 | ], |
|
| 1051 | ]; |
|
| 1052 | } |
|
| 1053 | } |
|
| 1054 | ||
| @@ 215-239 (lines=25) @@ | ||
| 212 | /** |
|
| 213 | * @return array |
|
| 214 | */ |
|
| 215 | public function findByAppRefProvider() |
|
| 216 | { |
|
| 217 | return [ |
|
| 218 | 'find all tablet records' => [ |
|
| 219 | 'app.$ref', |
|
| 220 | 'http://localhost/core/app/tablet', |
|
| 221 | 5 |
|
| 222 | ], |
|
| 223 | 'find a linked record when searching for ref' => [ |
|
| 224 | 'app.$ref', |
|
| 225 | 'http://localhost/core/app/admin', |
|
| 226 | 1 |
|
| 227 | ], |
|
| 228 | 'find nothing when searching for inextistant (and unlinked) ref' => [ |
|
| 229 | 'app.$ref', |
|
| 230 | 'http://localhost/core/app/inexistant', |
|
| 231 | 0 |
|
| 232 | ], |
|
| 233 | 'return nothing when searching with incomplete ref' => [ |
|
| 234 | 'app.$ref', |
|
| 235 | 'http://localhost/core/app', |
|
| 236 | 0 |
|
| 237 | ], |
|
| 238 | ]; |
|
| 239 | } |
|
| 240 | ||
| 241 | /** |
|
| 242 | * Apply RQL operators to extref fields |
|