示例#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
文件: TestCase.php 项目: znck/trust
 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');
 }