function FilterBooleanOperatorStringTest::schemaDefinition

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php \Drupal\Tests\views\Kernel\Handler\FilterBooleanOperatorStringTest::schemaDefinition()
  2. 10 core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php \Drupal\Tests\views\Kernel\Handler\FilterBooleanOperatorStringTest::schemaDefinition()
  3. 11.x core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php \Drupal\Tests\views\Kernel\Handler\FilterBooleanOperatorStringTest::schemaDefinition()

Overrides ViewsKernelTestBase::schemaDefinition

File

core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php, line 43

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\Handler

Code

protected function schemaDefinition() {
    $schema = parent::schemaDefinition();
    $schema['views_test_data']['fields']['status'] = [
        'description' => 'The status of this record',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
    ];
    return $schema;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.