function RoutingFixtures::dropTables
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Routing/RoutingFixtures.php \Drupal\Tests\Core\Routing\RoutingFixtures::dropTables()
- 10 core/tests/Drupal/Tests/Core/Routing/RoutingFixtures.php \Drupal\Tests\Core\Routing\RoutingFixtures::dropTables()
- 11.x core/tests/Drupal/Tests/Core/Routing/RoutingFixtures.php \Drupal\Tests\Core\Routing\RoutingFixtures::dropTables()
Drop the tables used for the sample data.
Parameters
\Drupal\Core\Database\Connection $connection: The connection to use to drop the tables.
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ RoutingFixtures.php, line 37
Class
- RoutingFixtures
- Utility methods to generate sample data, database configuration, etc.
Namespace
Drupal\Tests\Core\RoutingCode
public function dropTables(Connection $connection) {
$tables = $this->routingTableDefinition();
$schema = $connection->schema();
foreach ($tables as $name => $table) {
$schema->dropTable($name);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.