public function TableTest::testThemeTableTitle in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php \Drupal\KernelTests\Core\Render\Element\TableTest::testThemeTableTitle()
- 9 core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php \Drupal\KernelTests\Core\Render\Element\TableTest::testThemeTableTitle()
Tests that the select/checkbox label is being generated and escaped.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Render/ Element/ TableTest.php, line 304
Class
- TableTest
- Tests built-in table theme functions.
Namespace
Drupal\KernelTests\Core\Render\ElementCode
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 favorite fruit is <strong>bananas</strong>');
}