diff --git a/core/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php b/core/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php index 9e9f7ca964..4a6191f7d6 100644 --- a/core/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php +++ b/core/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php @@ -90,13 +90,8 @@ protected function tearDown($db_prefix, $db_url, $app_root) { Database::addConnectionInfo(__CLASS__, 'default', $database); // Remove all the tables. - $connection = Database::getConnection('default', __CLASS__); - $tables = $connection->schema()->findTables('%'); - foreach ($tables as $table) { - if ($connection->schema()->dropTable($table)) { - unset($tables[$table]); - } - } + $schema = Database::getConnection('default', __CLASS__)->schema(); + array_walk($schema->findTables('%'), [$schema, 'dropTable']); // Delete test site directory. $test_database = new TestDatabase($db_prefix); diff --git a/core/tests/Drupal/TestSite/TestSiteApplication.php b/core/tests/Drupal/TestSite/TestSiteApplication.php index 02359fbf64..542c580ef4 100644 --- a/core/tests/Drupal/TestSite/TestSiteApplication.php +++ b/core/tests/Drupal/TestSite/TestSiteApplication.php @@ -31,7 +31,7 @@ class TestSiteApplication extends Application { */ public function __construct($autoloader) { $this->autoloader = $autoloader; - parent::__construct('test-site', '0.0.1'); + parent::__construct('test-site', '0.1.0'); } /**