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

8.0.x
Alex Pott 2015-01-12 09:12:11 +00:00
parent efbaa69a32
commit c706fd78a3
2 changed files with 5 additions and 1 deletions

View File

@ -117,6 +117,10 @@ class TextFormatElementFormTest extends KernelTestBase implements FormInterface
$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.');
}
/**

View File

@ -26,6 +26,6 @@
]
%}
<div{{ attributes.addClass(classes) }}>
<h4 class="label">{{ format.name }}</h4>
<h4 class="label">{{ format.label }}</h4>
{{ tips }}
</div>