function RelationshipJoinTestBase::schemaDefinition
Same name in other branches
- 9 core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php \Drupal\Tests\views\Kernel\Plugin\RelationshipJoinTestBase::schemaDefinition()
- 8.9.x core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php \Drupal\Tests\views\Kernel\Plugin\RelationshipJoinTestBase::schemaDefinition()
- 10 core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php \Drupal\Tests\views\Kernel\Plugin\RelationshipJoinTestBase::schemaDefinition()
Overrides \Drupal\views\Tests\ViewTestBase::schemaDefinition().
Adds a uid column to test the relationships.
@internal
File
-
core/
modules/ views/ tests/ src/ Kernel/ Plugin/ RelationshipJoinTestBase.php, line 51
Class
- RelationshipJoinTestBase
- Provides a base class for a testing a relationship.
Namespace
Drupal\Tests\views\Kernel\PluginCode
protected function schemaDefinition() {
$schema = parent::schemaDefinition();
$schema['views_test_data']['fields']['uid'] = [
'description' => "The {users_field_data}.uid of the author of the beatle entry.",
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
];
return $schema;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.