/**
  * Setup the test environment.
  */
 public function setUp()
 {
     parent::setUp();
     $this->artisan('migrate', ['--database' => 'testbench', '--path' => '../tests/database/migrations']);
     // Workaround to get Eloquent Model events working in tests
     TestModel::flushEventListeners();
     TestModel::boot();
 }
 protected static function boot()
 {
     parent::boot();
     static::addGlobalScope(new ActiveScope());
 }