refreshApplicationWithLocale('en'); $this->user = User::factory()->create(['is_consultant' => true]); $this->recipe = Recipe::inRandomOrder()->first(); } public function test_show_page_success() { $response = $this->actingAs($this->user) ->get(route('recipe.show', $this->recipe, false)); $response ->assertOk(); } }