diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentValidationTest.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentValidationTest.php index 7226f40..b56ed6b 100644 --- a/core/modules/comment/lib/Drupal/comment/Tests/CommentValidationTest.php +++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentValidationTest.php @@ -40,6 +40,7 @@ public function setUp() { parent::setUp(); $this->installEntitySchema('node'); $this->installEntitySchema('comment'); + $this->installSchema('comment', array('comment_entity_statistics')); } /** diff --git a/core/modules/editor/lib/Drupal/editor/Tests/EditorFileUsageTest.php b/core/modules/editor/lib/Drupal/editor/Tests/EditorFileUsageTest.php index 40af4bc..80c14e9 100644 --- a/core/modules/editor/lib/Drupal/editor/Tests/EditorFileUsageTest.php +++ b/core/modules/editor/lib/Drupal/editor/Tests/EditorFileUsageTest.php @@ -33,6 +33,7 @@ public function setUp() { parent::setUp(); $this->installEntitySchema('node'); $this->installEntitySchema('file'); + $this->installSchema('file', array('file_usage')); // Add text formats. $filtered_html_format = entity_create('filter_format', array( diff --git a/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php b/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php index 5c9c32d..f65478b 100644 --- a/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php +++ b/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php @@ -20,6 +20,15 @@ public static function getInfo() { } /** + * {@inheritdoc} + */ + public function setUp() { + parent::setUp(); + + $this->installSchema('user', array('users_data')); + } + + /** * Test that field types and field definitions are correctly cached. */ function testFieldInfo() { diff --git a/core/modules/file/lib/Drupal/file/FileStorage.php b/core/modules/file/lib/Drupal/file/FileStorage.php index 492955e..0390a3d 100644 --- a/core/modules/file/lib/Drupal/file/FileStorage.php +++ b/core/modules/file/lib/Drupal/file/FileStorage.php @@ -45,6 +45,8 @@ public function retrieveTemporaryFiles() { protected function buildSchema() { $schema = parent::buildSchema(); + // @todo There should be a 'binary' field type or setting. + $schema['file_managed']['fields']['uri']['binary'] = TRUE; $schema['file_managed']['indexes'] += array( 'file__status' => array('status'), 'file__changed' => array('changed'), diff --git a/core/modules/file/lib/Drupal/file/Tests/FileItemTest.php b/core/modules/file/lib/Drupal/file/Tests/FileItemTest.php index af73f03..57b908a 100644 --- a/core/modules/file/lib/Drupal/file/Tests/FileItemTest.php +++ b/core/modules/file/lib/Drupal/file/Tests/FileItemTest.php @@ -43,6 +43,7 @@ public function setUp() { parent::setUp(); $this->installEntitySchema('file'); + $this->installSchema('file', array('file_usage')); entity_create('field_config', array( 'name' => 'file_test', diff --git a/core/modules/file/lib/Drupal/file/Tests/FileManagedUnitTestBase.php b/core/modules/file/lib/Drupal/file/Tests/FileManagedUnitTestBase.php index 1930297..503490f 100644 --- a/core/modules/file/lib/Drupal/file/Tests/FileManagedUnitTestBase.php +++ b/core/modules/file/lib/Drupal/file/Tests/FileManagedUnitTestBase.php @@ -31,6 +31,7 @@ function setUp() { $this->installConfig(array('system')); $this->installEntitySchema('file'); $this->installEntitySchema('user'); + $this->installSchema('file', array('file_usage')); // Make sure that a user with uid 1 exists, self::createFile() relies on // it. diff --git a/core/modules/hal/lib/Drupal/hal/Tests/EntityTest.php b/core/modules/hal/lib/Drupal/hal/Tests/EntityTest.php index af298f9..8bc3fed 100644 --- a/core/modules/hal/lib/Drupal/hal/Tests/EntityTest.php +++ b/core/modules/hal/lib/Drupal/hal/Tests/EntityTest.php @@ -38,6 +38,7 @@ function setUp() { \Drupal::service('router.builder')->rebuild(); $this->installSchema('system', array('sequences')); + $this->installSchema('comment', array('comment_entity_statistics')); $this->installEntitySchema('node'); $this->installEntitySchema('comment'); $this->installEntitySchema('taxonomy_term'); diff --git a/core/modules/image/lib/Drupal/image/Tests/ImageItemTest.php b/core/modules/image/lib/Drupal/image/Tests/ImageItemTest.php index 7f16d09..11b29a7 100644 --- a/core/modules/image/lib/Drupal/image/Tests/ImageItemTest.php +++ b/core/modules/image/lib/Drupal/image/Tests/ImageItemTest.php @@ -48,6 +48,7 @@ public function setUp() { parent::setUp(); $this->installEntitySchema('file'); + $this->installEntitySchema('file', array('file_usage')); entity_create('field_config', array( 'name' => 'image_test', diff --git a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php index 6e5c980..e4bb92f 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php @@ -47,6 +47,10 @@ public function setUp() { $this->installEntitySchema('node'); $this->installEntitySchema('comment'); + + $this->installSchema('file', array('file_usage')); + $this->installSchema('node', array('node_access')); + $this->installSchema('comment', array('comment_entity_statistics')); } /** diff --git a/core/modules/views/lib/Drupal/views/Tests/Entity/RowEntityRenderersTest.php b/core/modules/views/lib/Drupal/views/Tests/Entity/RowEntityRenderersTest.php index 18ddff0..be88bf2 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Entity/RowEntityRenderersTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Entity/RowEntityRenderersTest.php @@ -58,6 +58,7 @@ protected function setUp() { $this->installEntitySchema('node'); $this->installEntitySchema('user'); + $this->installSchema('node', array('node_access')); $this->installConfig(array('node', 'language')); $this->langcodes = array(\Drupal::languageManager()->getDefaultLanguage()->id); diff --git a/core/modules/views/lib/Drupal/views/Tests/ViewExecutableTest.php b/core/modules/views/lib/Drupal/views/Tests/ViewExecutableTest.php index 4e2715d..259e0db 100644 --- a/core/modules/views/lib/Drupal/views/Tests/ViewExecutableTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/ViewExecutableTest.php @@ -87,6 +87,7 @@ protected function setUpFixtures() { $this->installEntitySchema('user'); $this->installEntitySchema('node'); $this->installEntitySchema('comment'); + $this->installSchema('comment', array('comment_entity_statistics')); $this->installConfig(array('field')); entity_create('node_type', array( diff --git a/core/tests/Drupal/Tests/Core/Entity/Schema/ContentEntitySchemaHandlerTest.php b/core/tests/Drupal/Tests/Core/Entity/Schema/ContentEntitySchemaHandlerTest.php index bab550f..f08f332 100644 --- a/core/tests/Drupal/Tests/Core/Entity/Schema/ContentEntitySchemaHandlerTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/Schema/ContentEntitySchemaHandlerTest.php @@ -144,6 +144,7 @@ public function testGetSchemaLayoutBase() { ), ), 'primary key' => array('id'), + 'indexes' => array(), ), ); $actual = $this->schemaHandler->getSchema(); @@ -228,6 +229,7 @@ public function testGetSchemaLayoutBaseWithUuid() { 'unique keys' => array( 'entity_test__uuid' => array('uuid'), ), + 'indexes' => array(), ), ); $actual = $this->schemaHandler->getSchema();