private function getMockAllGroupsMethodService($service) { return $this->getDynamicallyMockedService($service, 'getAllGroups', $this->exactly(1), []); }