tests/TranslatableUnitTest.php 1 location
|
@@ 236-244 (lines=9) @@
|
| 233 |
|
|
| 234 |
|
|
| 235 |
|
|
| 236 |
|
private function makeCode($paginated) { |
| 237 |
|
$results = $paginated->getList()->toArray(); |
| 238 |
|
$ctr = 0; |
| 239 |
|
echo '$result = $paginated->getList()->toArray();'."\n"; |
| 240 |
|
foreach ($results as $result) { |
| 241 |
|
echo '$this->assertEquals("'.$result->Title.'", $results['.$ctr.']->Title);'."\n"; |
| 242 |
|
$ctr++; |
| 243 |
|
} |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
} |
| 247 |
|
|
tests/ElasticSearcherUnitTest.php 1 location
|
@@ 276-284 (lines=9) @@
|
| 273 |
|
} |
| 274 |
|
|
| 275 |
|
|
| 276 |
|
private function makeCode($paginated) { |
| 277 |
|
$results = $paginated->getList()->toArray(); |
| 278 |
|
$ctr = 0; |
| 279 |
|
echo '$result = $paginated->getList()->toArray();'."\n"; |
| 280 |
|
foreach ($results as $result) { |
| 281 |
|
echo '$this->assertEquals("'.$result->Title.'", $results['.$ctr.']->Title);'."\n"; |
| 282 |
|
$ctr++; |
| 283 |
|
} |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
} |
| 287 |
|
|