get('/signup'); $response->assertStatus(200); } /** * A valid user can be logged in. * * @return void */ public function testCreateAValidUser() { DB::beginTransaction(); $this->browse(function (Browser $browser) { $browser->visit('/signup') ->type('first_name',$this->faker->firstName()) ->type('last_name', $this->faker->lastName()) ->type('email', $this->faker->email()) ->type('password', $this->faker->password(7)) ->check('terms_of_service') ->check('privacy_policy') ->press(trans('texts.create_account')) ->assertPathIs('/dashboard'); }); DB::rollback(); } }