diff -u b/core/modules/system/src/Tests/Theme/TableTest.php b/core/modules/system/src/Tests/Theme/TableTest.php --- b/core/modules/system/src/Tests/Theme/TableTest.php +++ b/core/modules/system/src/Tests/Theme/TableTest.php @@ -316,7 +316,7 @@ $form = \Drupal::formBuilder()->getForm('\Drupal\form_test\Form\FormTestTableForm'); $this->render($form); $this->assertEscaped('Update kitten'); - $this->assertRaw('Update flamingo'); + $this->assertRaw('Update my favourite fruit is bananas'); } } diff -u b/core/modules/system/tests/modules/form_test/src/Form/FormTestTableForm.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestTableForm.php --- b/core/modules/system/tests/modules/form_test/src/Form/FormTestTableForm.php +++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestTableForm.php @@ -36,7 +36,7 @@ ]; $form['table']['another_row'] = [ 'data' => [ - '#title' => SafeString::create('flamingo'), + '#title' => $this->t('my favourite fruit is @fruit', ['@fruit' => 'bananas']), '#markup' => '
some more text
', ], ];