public function FieldDateTest::schemaDefinition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\HandlerCode
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;
}