function FilterBooleanOperatorStringTest::dataSet
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php \Drupal\Tests\views\Kernel\Handler\FilterBooleanOperatorStringTest::dataSet()
- 10 core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php \Drupal\Tests\views\Kernel\Handler\FilterBooleanOperatorStringTest::dataSet()
- 11.x core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php \Drupal\Tests\views\Kernel\Handler\FilterBooleanOperatorStringTest::dataSet()
Overrides ViewsKernelTestBase::dataSet
File
-
core/
modules/ views/ tests/ src/ Kernel/ Handler/ FilterBooleanOperatorStringTest.php, line 71
Class
- FilterBooleanOperatorStringTest
- Tests the core <a href="/api/drupal/core%21modules%21views%21src%21Plugin%21views%21filter%21BooleanOperatorString.php/class/BooleanOperatorString/8.9.x" title="Simple filter to handle matching of boolean values." class="local">Drupal\views\Plugin\views\filter\BooleanOperatorString</a> handler.
Namespace
Drupal\Tests\views\Kernel\HandlerCode
protected function dataSet() {
$data = parent::dataSet();
foreach ($data as &$row) {
if ($row['status']) {
$row['status'] = 'Enabled';
}
else {
$row['status'] = '';
}
}
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.