<?php
namespace IlluminateFoundationTesting;
trait DatabaseMigrations
{
/**
* Define hooks to migrate the database before and after each test.
*
* @return void
*/
public function runDatabaseMigrations()
{
$this->artisan('migrate');
$this->beforeApplicationDestroyed(function () {
$this->artisan('migrate:rollback');
});
}
}