reload($tables); $connection = ConnectionManager::get('test'); $schema = $connection->getSchemaCollection(); $tables = $schema->listTables(); $this->assertContains('schema_generator', $tables); $this->assertContains('schema_generator_comment', $tables); foreach ($tables as $table) { $meta = $schema->describe($table); foreach ($meta->dropSql($connection) as $stmt) { $connection->execute($stmt); } } } }