protected function getFieldTypeMock() { if (!isset($this->fieldTypeMock)) { $this->fieldTypeMock = $this->getMock('eZ\\Publish\\SPI\\FieldType\\FieldType'); } return $this->fieldTypeMock; }