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