Beispiel #1
0
 /**
  * Setup the test environment.
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     // Create an artisan object for calling migrations
     $artisan = $this->app->make('artisan');
     // Call migrations specific to our tests, e.g. to seed the db
     $artisan->call('migrate', ['--database' => 'testbench', '--path' => '../tests/Migrations']);
     Models\ModelWithTraitAndBootObserver::observe(new \Sleavely\Datadiff\DatadiffObserver());
 }