function ViewsHandlerFieldBooleanTest::dataSet
3.x views_handler_field_boolean.test | ViewsHandlerFieldBooleanTest::dataSet() |
A very simple test dataset.
Overrides ViewsSqlTest::dataSet
File
- tests/
handlers/ views_handler_field_boolean.test, line 20 - Definition of ViewsHandlerFieldBooleanTest.
Class
- ViewsHandlerFieldBooleanTest
- Tests the core views_handler_field_boolean handler.
Code
function dataSet() {
// Use default dataset but remove the age from john and paul
$data = parent::dataSet();
$data[0]['age'] = 0;
$data[3]['age'] = 0;
return $data;
}