Пример #1
0
 /**
  * Setup the test environment.
  */
 public function setUp()
 {
     parent::setUp();
     $this->artisan('migrate', ['--realpath' => realpath(__DIR__ . '/database/migrations')]);
     $this->artisan('migrate', ['--realpath' => realpath(__DIR__ . '/../src/database/migrations')]);
     $this->withFactories(realpath(__DIR__ . '/database/factories'));
 }
Пример #2
0
 public function setUp()
 {
     parent::setUp();
     $this->app['config']['auth.providers.users.model'] = User::class;
 }
Пример #3
0
 public function setUp()
 {
     parent::setUp();
     $this->migrationPath = realpath(__DIR__ . '/migrations');
     $this->withFactories(__DIR__ . '/../database/factories');
 }