login(), [ 'https://nami.dpsg.de/ica/rest/baseadmin/konfession' => Http::response($this->fakeJson('confession.json'), 200) ])); $this->setCredentials(); Nami::login(); $this->assertEquals([ 1 => 'römisch-katholisch' ], Nami::confessions()->pluck('name', 'id')->toArray()); Http::assertSentCount(3); } }