public function TableTest::testThemeTableTitle in Zircon Profile 8
Same name in this branch
- 8 core/modules/system/src/Tests/Theme/TableTest.php \Drupal\system\Tests\Theme\TableTest::testThemeTableTitle()
- 8 core/modules/system/src/Tests/Render/Element/TableTest.php \Drupal\system\Tests\Render\Element\TableTest::testThemeTableTitle()
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Theme/TableTest.php \Drupal\system\Tests\Theme\TableTest::testThemeTableTitle()
Tests that the select/checkbox label is being generated and escaped.
File
- core/
modules/ system/ src/ Tests/ Theme/ TableTest.php, line 319 - Contains \Drupal\system\Tests\Theme\TableTest.
Class
- TableTest
- Tests built-in table theme functions.
Namespace
Drupal\system\Tests\ThemeCode
public function testThemeTableTitle() {
$form = \Drupal::formBuilder()
->getForm('\\Drupal\\form_test\\Form\\FormTestTableForm');
$this
->render($form);
$this
->assertEscaped('Update <em>kitten</em>');
$this
->assertRaw('Update my favourite fruit is <strong>bananas</strong>');
}