diff --git a/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceItemTest.php b/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceItemTest.php index 8c33d47..0586e7c 100644 --- a/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceItemTest.php +++ b/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceItemTest.php @@ -52,8 +52,7 @@ public static function getInfo() { public function setUp() { parent::setUp(); - $this->installSchema('taxonomy', 'taxonomy_term_data'); - $this->installSchema('taxonomy', 'taxonomy_term_hierarchy'); + $this->installEntitySchema('taxonomy_term'); $this->vocabulary = entity_create('taxonomy_vocabulary', array( 'name' => $this->randomName(), diff --git a/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php b/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php index 4999a83..a869865 100644 --- a/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php +++ b/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php @@ -177,7 +177,7 @@ function testInstancePrepare() { function testInstanceDisabledEntityType() { // Disabling a module invokes user_modules_uninstalled() and calls // drupal_flush_all_caches(). Install the necessary schema to support this. - $this->installSchema('user', array('users_data')); + $this->installEntitySchema('user'); $this->installSchema('system', array('router')); // For this test the field type and the entity type must be exposed by diff --git a/core/modules/hal/lib/Drupal/hal/Tests/EntityTest.php b/core/modules/hal/lib/Drupal/hal/Tests/EntityTest.php index 42bfc4f..026f6df 100644 --- a/core/modules/hal/lib/Drupal/hal/Tests/EntityTest.php +++ b/core/modules/hal/lib/Drupal/hal/Tests/EntityTest.php @@ -38,9 +38,9 @@ function setUp() { \Drupal::service('router.builder')->rebuild(); $this->installSchema('system', array('sequences')); - $this->installSchema('node', array('node', 'node_field_data', 'node_revision', 'node_field_revision')); - $this->installSchema('user', array('users_roles')); - $this->installSchema('taxonomy', array('taxonomy_term_data', 'taxonomy_term_hierarchy')); + $this->installEntitySchema('node'); + $this->installEntitySchema('user'); + $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 7803a11..7f16d09 100644 --- a/core/modules/image/lib/Drupal/image/Tests/ImageItemTest.php +++ b/core/modules/image/lib/Drupal/image/Tests/ImageItemTest.php @@ -47,7 +47,7 @@ public static function getInfo() { public function setUp() { parent::setUp(); - $this->installSchema('file', array('file_managed', 'file_usage')); + $this->installEntitySchema('file'); entity_create('field_config', array( 'name' => 'image_test', diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TaxonomyTermReferenceRdfaTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TaxonomyTermReferenceRdfaTest.php index 4e4f7a1..d30ae25 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TaxonomyTermReferenceRdfaTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TaxonomyTermReferenceRdfaTest.php @@ -50,7 +50,7 @@ public static function getInfo() { public function setUp() { parent::setUp(); - $this->installSchema('taxonomy', array('taxonomy_term_data', 'taxonomy_term_hierarchy')); + $this->installEntitySchema('taxonomy_term'); $vocabulary = entity_create('taxonomy_vocabulary', array( 'name' => $this->randomName(), diff --git a/core/modules/simpletest/lib/Drupal/simpletest/Tests/DrupalUnitTestBaseTest.php b/core/modules/simpletest/lib/Drupal/simpletest/Tests/DrupalUnitTestBaseTest.php index 2148bd7..40c16fd 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/Tests/DrupalUnitTestBaseTest.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/Tests/DrupalUnitTestBaseTest.php @@ -75,8 +75,8 @@ function testEnableModulesLoad() { * Tests expected installation behavior of enableModules(). */ function testEnableModulesInstall() { - $module = 'node'; - $table = 'node'; + $module = 'ban'; + $table = 'ban_ip'; // Verify that the module does not exist yet. $this->assertFalse(\Drupal::moduleHandler()->moduleExists($module), "$module module not found."); 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 c0a16be..6e5c980 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php @@ -45,9 +45,7 @@ public static function getInfo() { public function setUp() { parent::setUp(); - $this->installSchema('node', array('node_access')); $this->installEntitySchema('node'); - $this->installEntitySchema('comment'); } diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermReferenceItemTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermReferenceItemTest.php index 0a67140..0dbdd35 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermReferenceItemTest.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermReferenceItemTest.php @@ -42,8 +42,7 @@ public static function getInfo() { public function setUp() { parent::setUp(); - $this->installSchema('taxonomy', 'taxonomy_term_data'); - $this->installSchema('taxonomy', 'taxonomy_term_hierarchy'); + $this->installEntitySchema('taxonomy'); $vocabulary = entity_create('taxonomy_vocabulary', array( 'name' => $this->randomName(), diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermValidationTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermValidationTest.php index 1d96f61..f545403 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermValidationTest.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermValidationTest.php @@ -34,7 +34,7 @@ public static function getInfo() { */ public function setUp() { parent::setUp(); - $this->installEntitySchema('taxonomy_tern'); + $this->installEntitySchema('taxonomy_term'); } /** 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 c008a17..18ddff0 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Entity/RowEntityRenderersTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Entity/RowEntityRenderersTest.php @@ -57,7 +57,7 @@ protected function setUp() { parent::setUp(); $this->installEntitySchema('node'); - $this->installSchema('user', array('users')); + $this->installEntitySchema('user'); $this->installConfig(array('node', 'language')); $this->langcodes = array(\Drupal::languageManager()->getDefaultLanguage()->id);