protected function ViewsHandlerFieldDateTest::dataSet in Views (for Drupal 7) 7.3
Appends dataSet() with a data row for "today time ago" format testing.
Overrides ViewsSqlTest::dataSet
File
- tests/
handlers/ views_handler_field_date.test, line 121 - Definition of ViewsHandlerFieldDateTest.
Class
- ViewsHandlerFieldDateTest
- Tests the core views_handler_field_date handler.
Code
protected function dataSet() {
$data = parent::dataSet();
$data[] = array(
'name' => 'David',
'age' => 25,
'job' => 'Singer',
'created' => REQUEST_TIME - 120,
);
return $data;
}