function FieldTimeIntervalTest::schemaDefinition

Same name in other branches
  1. 9 core/modules/views/tests/src/Functional/Handler/FieldTimeIntervalTest.php \Drupal\Tests\views\Functional\Handler\FieldTimeIntervalTest::schemaDefinition()
  2. 11.x core/modules/views/tests/src/Kernel/Handler/FieldTimeIntervalTest.php \Drupal\Tests\views\Kernel\Handler\FieldTimeIntervalTest::schemaDefinition()

Overrides ViewsKernelTestBase::schemaDefinition

File

core/modules/views/tests/src/Kernel/Handler/FieldTimeIntervalTest.php, line 60

Class

FieldTimeIntervalTest
Tests the time interval handler.

Namespace

Drupal\Tests\views\Kernel\Handler

Code

protected function schemaDefinition() {
    $schema_definition = parent::schemaDefinition();
    $schema_definition['views_test_data']['fields']['age']['not null'] = FALSE;
    return $schema_definition;
}

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