public function FieldBooleanTest::dataSet in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php \Drupal\Tests\views\Kernel\Handler\FieldBooleanTest::dataSet()
Returns a very simple test dataset.
Overrides ViewsKernelTestBase::dataSet
File
- core/
modules/ views/ tests/ src/ Kernel/ Handler/ FieldBooleanTest.php, line 22
Class
- FieldBooleanTest
- Tests the core Drupal\views\Plugin\views\field\Boolean handler.
Namespace
Drupal\Tests\views\Kernel\HandlerCode
public 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;
}