refreshApplicationWithLocale('en'); $this->user = User::factory()->create(['is_consultant' => true]); $this->product = ProductNutritionalValue::inRandomOrder()->first(); } public function test_index_page_success(): void { $response = $this ->actingAs($this->user) ->get(route('product_nutritional_value.index')); $response ->assertOk(); } }