Inheritance: extends Orchestra\Testbench\TestCase
Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->migrate([$this->stubsPath('database/migrations'), $this->resourcePath('migrations')]);
     $this->seed(['UserTableSeeder', 'RoleTableSeeder']);
     $this->app->singleton('Illuminate\\Contracts\\Debug\\ExceptionHandler', 'Orchestra\\Testbench\\Exceptions\\Handler');
     $this->defender = new Defender($this->app, $this->app['defender.role'], $this->app['defender.permission']);
     $this->defender->setUser(User::first());
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->migrate([$this->stubsPath('database/migrations'), $this->resourcePath('migrations')]);
     $this->seed(['UserTableSeeder', 'RoleTableSeeder']);
 }