tests/TranslatableUnitTest.php 1 location
|
@@ 254-262 (lines=9) @@
|
| 251 |
|
} |
| 252 |
|
} |
| 253 |
|
|
| 254 |
|
private function makeCode($paginated) { |
| 255 |
|
$results = $paginated->getList()->toArray(); |
| 256 |
|
$ctr = 0; |
| 257 |
|
echo '$result = $paginated->getList()->toArray();' . "\n"; |
| 258 |
|
foreach($results as $result) { |
| 259 |
|
echo '$this->assertEquals("' . $result->Title . '", $results[' . $ctr . ']->Title);' . "\n"; |
| 260 |
|
$ctr++; |
| 261 |
|
} |
| 262 |
|
} |
| 263 |
|
|
| 264 |
|
} |
| 265 |
|
|
tests/ElasticSearcherUnitTest.php 1 location
|
@@ 281-289 (lines=9) @@
|
| 278 |
|
} |
| 279 |
|
|
| 280 |
|
|
| 281 |
|
private function makeCode($paginated) { |
| 282 |
|
$results = $paginated->getList()->toArray(); |
| 283 |
|
$ctr = 0; |
| 284 |
|
echo '$result = $paginated->getList()->toArray();' . "\n"; |
| 285 |
|
foreach ($results as $result) { |
| 286 |
|
echo '$this->assertEquals("' . $result->Title . '", $results[' . $ctr . ']->Title);' . "\n"; |
| 287 |
|
$ctr++; |
| 288 |
|
} |
| 289 |
|
} |
| 290 |
|
|
| 291 |
|
} |
| 292 |
|
|