protected function getContentTypeHandlerMock() { if (!isset($this->contentTypeHandlerMock)) { $this->contentTypeHandlerMock = $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Type\\Handler', array(), array(), '', false); } return $this->contentTypeHandlerMock; }