1 views_handler_field_bulk_form.test | protected ViewsHandlerFieldBulkFormTest::dataSet() |
Overrides the dataset for views_test to insert nids for each of the 5 rows.
The field `nid` is used for the relationship to the node entities.
Overrides ViewsSqlTest::dataSet
File
- core/
modules/ views/ tests/ handlers/ views_handler_field_bulk_form.test, line 101 - Definition of ViewsHandlerFieldBulkFormTest.
Class
Code
protected function dataSet() {
$dataset = parent::dataSet();
$dataset[0]['nid'] = 1; // nid 1
$dataset[1]['nid'] = 2; // nid 2
$dataset[2]['nid'] = 1; // nid 1
$dataset[3]['nid'] = 2; // nid 2
$dataset[4]['nid'] = 2; // nid 2
return $dataset;
}