private function getEditorHelper($useEditor = false)
{
$editor = $this->getMockBuilder(EditorHelper::class)->disableOriginalConstructor()->setMethods(['fromString'])->getMock();
$editor->expects($useEditor ? $this->once() : $this->never())->method('fromString')->will($this->returnValue(self::ISSUE_DESCRIPTION));
return $editor;
}