protected function getLocationServiceMock() { if (!isset($this->locationServiceMock)) { $this->locationServiceMock = $this->getMockBuilder('eZ\\Publish\\API\\Repository\\LocationService')->disableOriginalConstructor()->getMock(); } return $this->locationServiceMock; }