protected function assertContentHasAllowedModuleOptionTags($content) { $availableModules = EmailTemplateModelClassNameElement::getAvailableModelNamesArray(); foreach ($availableModules as $key => $name) { $this->assertContains('<option value="' . $key, $content); // Not Coding Standard } }
protected function renderModelClassName(&$content, &$hiddenElements) { if ($this->model->isWorkflowTemplate()) { $element = new EmailTemplateModelClassNameElement($this->model, 'modelClassName', $this->form); $element->editableTemplate = $this->defaultTextAndDropDownElementEditableTemplate; $modelClassNameContent = $element->render(); $this->wrapContentInTableRow($modelClassNameContent); $content .= $modelClassNameContent; } else { $this->renderHiddenField($hiddenElements, 'modelClassName', 'Contact'); } }