/** * Setup the test environment. */ public function setUp() { parent::setup(); $migrationsPath = realpath('test/database/migrations'); $this->artisan('migrate', ['--database' => 'testbench', '--realpath' => $migrationsPath]); $this->testData = ['email' => '*****@*****.**', 'password' => '$2y$10$tDy/6LDmIyIdCwdhlMWOR.a5.QWSxugr5eIBQqX23UGrJ7MrAx5j.']; $model = new Model(); $this->repository = new ModelRepository($model); }