create()); }); it('renders the organisation page with counts', function () { $organisation = Organisation::factory()->create(); $response = $this->get(route('organisations.show', ['organisation' => $organisation->id])); $response->assertStatus(200); $response->assertInertia(fn (AssertableInertia $page) => $page ->component('organisations/Show', false) ->where('organisation.id', $organisation->id)); }); it('404s for a non-existent organisation', function () { $response = $this->get(route('organisations.show', ['organisation' => 999999])); $response->assertNotFound(); });