public function UrlAliasFixtures::dropTables

Drop the tables used for the sample data.

Parameters

Drupal\Core\Database\Connection $connection: The connection to use to drop the tables.

File

drupal/core/modules/system/lib/Drupal/system/Tests/Path/UrlAliasFixtures.php, line 34

Class

UrlAliasFixtures
Utility methods to generate sample data, database configuration, etc.

Namespace

Drupal\system\Tests\Path

Code

public function dropTables(Connection $connection) {
  $tables = $this
    ->urlAliasTableDefinition();
  $schema = $connection
    ->schema();
  foreach ($tables as $name => $table) {
    $schema
      ->dropTable($name);
  }
}