Http::response($this->fakeJson('genders.json'), 200) ]); $genders = $this->login()->genders(); $this->assertEquals([ 19 => 'Männlich', 20 => 'Weiblich' ], $genders->pluck('name', 'id')->toArray()); Http::assertSentCount(1); } }