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