Commit c706fd78 authored by alexpott's avatar alexpott

Issue #2404673 by vladan.me, Poornima3: Property format.name is now protected

parent efbaa69a
......@@ -117,6 +117,10 @@ public function testTextFormatElement() {
$output = $this->render($form);
$this->setRawContent($output);
$this->assertFieldByName('textformat[value]');
$this->assertRaw('<h4 class="label">Full HTML</h4>');
$this->assertRaw('<h4 class="label">Filtered HTML</h4>');
$this->assertRaw('<h4 class="label">Test format</h4>');
$this->assertNoPattern('|<h4[^>]*></h4>|', 'No empty H4 element found.');
}
/**
......
......@@ -26,6 +26,6 @@
]
%}
<div{{ attributes.addClass(classes) }}>
<h4 class="label">{{ format.name }}</h4>
<h4 class="label">{{ format.label }}</h4>
{{ tips }}
</div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment