protected function ViewsDataExportBaseTest::dataSet in Views data export 7.3
Same name and namespace in other branches
- 7.4 tests/base.test \ViewsDataExportBaseTest::dataSet()
A very simple test dataset.
1 call to ViewsDataExportBaseTest::dataSet()
- ViewsDataExportBaseTest::setUp in tests/
base.test - Sets up a Drupal site for running functional and integration tests.
File
- tests/
base.test, line 210
Class
Code
protected function dataSet() {
return array(
array(
'name' => 'John',
'age' => 25,
'job' => "Singer\r\nSongwriter\r\nPianist",
'created' => gmmktime(0, 0, 0, 1, 1, 2000),
),
array(
'name' => 'George',
'age' => 27,
'job' => "Singer\nGuitar player\nSitar player",
'created' => gmmktime(0, 0, 0, 1, 2, 2000),
),
array(
'name' => 'Ringo',
'age' => 28,
'job' => 'Drummer',
'created' => gmmktime(6, 30, 30, 1, 1, 2000),
),
array(
'name' => 'Paul',
'age' => 26,
'job' => "Songwriter\rBass guitarist",
'created' => gmmktime(6, 0, 0, 1, 1, 2000),
),
array(
'name' => 'Meredith',
'age' => 30,
'job' => 'Speaker',
'created' => gmmktime(6, 30, 10, 1, 1, 2000),
),
);
}