You are here

public function FieldDateTest::schemaDefinition in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Kernel/Handler/FieldDateTest.php \Drupal\Tests\views\Kernel\Handler\FieldDateTest::schemaDefinition()

Returns the schema definition.

@internal

Overrides ViewsKernelTestBase::schemaDefinition

File

core/modules/views/tests/src/Kernel/Handler/FieldDateTest.php, line 25

Class

FieldDateTest
Tests the core Drupal\views\Plugin\views\field\Date handler.

Namespace

Drupal\Tests\views\Kernel\Handler

Code

public function schemaDefinition() {
  $schema = parent::schemaDefinition();
  $schema['views_test_data']['fields']['destroyed'] = [
    'description' => "The destruction date of this record",
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => FALSE,
    'default' => 0,
  ];
  return $schema;
}