user = User::factory()->create(['is_consultant' => true]); $this->recipe = Recipe::inRandomOrder()->first(); $this->refreshApplicationWithLocale('en'); } public function testShowFormEditRecipe(): void { $response = $this ->actingAs($this->user) ->get(route('recipe.edit', ['recipe' => $this->recipe->id])); $response->assertSuccessful(); } }