You are here

public function FieldDateTest::schemaDefinition in Zircon Profile 8.0

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

Returns the schema definition.

Overrides ViewKernelTestBase::schemaDefinition

File

core/modules/views/src/Tests/Handler/FieldDateTest.php, line 30
Contains \Drupal\views\Tests\Handler\FieldDateTest.

Class

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

Namespace

Drupal\views\Tests\Handler

Code

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