public function getMockGlobalsService() { $mock = $this->getMockBuilder(GlobalsService::class)->disableOriginalConstructor()->getMock(); $mock->expects($this->exactly(1))->method('getAllSets')->willReturn([]); return $mock; }