assertRedirect('/'); $this->assertTrue(session()->has('error')); session()->remove('error'); } }