function FieldTimeIntervalTest::schemaDefinition

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

Overrides \Drupal\views\Tests\ViewUnitTestBase::schemaDefinition().

Overrides ViewTestBase::schemaDefinition

File

core/modules/views/tests/src/Functional/Handler/FieldTimeIntervalTest.php, line 71

Class

FieldTimeIntervalTest
Tests the time interval handler.

Namespace

Drupal\Tests\views\Functional\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.