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
|
@@ 271-279 (lines=9) @@
|
| 268 |
|
} |
| 269 |
|
|
| 270 |
|
|
| 271 |
|
private function makeCode($paginated) { |
| 272 |
|
$results = $paginated->getList()->toArray(); |
| 273 |
|
$ctr = 0; |
| 274 |
|
echo '$result = $paginated->getList()->toArray();' . "\n"; |
| 275 |
|
foreach ($results as $result) { |
| 276 |
|
echo '$this->assertEquals("' . $result->Title . '", $results[' . $ctr . ']->Title);' . "\n"; |
| 277 |
|
$ctr++; |
| 278 |
|
} |
| 279 |
|
} |
| 280 |
|
|
| 281 |
|
} |
| 282 |
|
|