function actingAsUser() { return $this->actingAs(\App\User::create(['name' => 'tester', 'email' => mt_rand(1, 9999) . '[email protected]', 'password' => 'password'])); }