public function testFind() { $repository = m::spy(TranslationRepository::class); $service = new TranslationService($repository); $service->find(1); $repository->shouldHaveReceived('getById')->with(1)->once(); }