You are here

protected function FilterStringTest::schemaDefinition in Zircon Profile 8

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

Returns the schema definition.

Overrides ViewKernelTestBase::schemaDefinition

File

core/modules/views/src/Tests/Handler/FilterStringTest.php, line 53
Contains \Drupal\views\Tests\Handler\FilterStringTest.

Class

FilterStringTest
Tests the core Drupal\views\Plugin\views\filter\StringFilter handler.

Namespace

Drupal\views\Tests\Handler

Code

protected function schemaDefinition() {
  $schema = parent::schemaDefinition();
  $schema['views_test_data']['fields']['description'] = array(
    'description' => "A person's description",
    'type' => 'text',
    'not null' => FALSE,
    'size' => 'big',
  );
  return $schema;
}