diff --git a/core/modules/simpletest/src/Tests/KernelTestBaseTest.php b/core/modules/simpletest/src/Tests/KernelTestBaseTest.php index eb8b2debd6..bfde117b7c 100644 --- a/core/modules/simpletest/src/Tests/KernelTestBaseTest.php +++ b/core/modules/simpletest/src/Tests/KernelTestBaseTest.php @@ -188,6 +188,7 @@ public function testInstallSchema() { $this->pass('Exception for non-retrievable schema found.'); } $this->assertFalse(Database::getConnection()->schema()->tableExists($table), "'$table' database table not found."); + $schema_installer = \Drupal::service('schema_installer'); $schema = $schema_installer->getSchema($module, $table); $this->assertTrue($schema, "'$table' table schema found.");