public function setUp() { parent::setUp(); $user = new User(['name' => 'Test User', 'email' => '*****@*****.**', 'password' => '123456']); $user->save(); DB::table('password_resets')->insert(['email' => '*****@*****.**', 'token' => 'my_super_secret_code', 'created_at' => Carbon::now()]); }
public function createDependence(Request $request, $id) { $testCase = TestCase::find($id); $testCase->requirements()->detach(); $requirements = $request->input('requirements', []); $testCase->requirements()->attach($requirements); return $testCase->requirements; }
public function setUp() { parent::setUp(); $this->repository = $this->app->build(DoctrineUserRepository::class); }
public function setUp() { parent::setUp(); $user = new User(['name' => 'Test', 'email' => '*****@*****.**', 'password' => '123456']); $user->save(); }
public function setUp() { parent::setUp(); }