/**
* Resets the database and install the migration table.
*
* @return void
*/
protected function migrate()
{
$tableNames = Schema::getConnection()->getDoctrineSchemaManager()->listTableNames();
foreach ($tableNames as $table) {
Schema::drop($table);
}
$this->app['Illuminate\\Contracts\\Console\\Kernel']->call('migrate:install', ['--env' => 'testing']);
}