protected function getGatewayMock() { if (!isset($this->gatewayMock)) { $this->gatewayMock = $this->getMockForAbstractClass('eZ\\Publish\\Core\\FieldType\\Url\\UrlStorage\\Gateway'); } return $this->gatewayMock; }