protected function getLocationGatewayMock() { if (!isset($this->locationGatewayMock)) { $this->locationGatewayMock = $this->getMockForAbstractClass('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Gateway'); } return $this->locationGatewayMock; }