1 views_handler_sort_random.test protected ViewsHandlerSortRandomTest::dataSet()

Add more items to the test set, to make the order tests more robust.

Overrides ViewsSqlTest::dataSet

File

core/modules/views/tests/handlers/views_handler_sort_random.test, line 16
Definition of ViewsHandlerSortRandomTest.

Class

ViewsHandlerSortRandomTest
Tests for core views_handler_sort_random handler.

Code

protected function dataSet() {
  $data = parent::dataSet();
  for ($i = 0; $i < 50; $i++) {
    $data[] = array(
      'name' => 'name_' . $i,
      'age' => $i,
      'job' => 'job_' . $i,
      'created' => rand(0, time()),
    );
  }
  return $data;
}