diff --git a/core/modules/system/src/Tests/Form/RadioTest.php b/core/modules/system/src/Tests/Form/RadioTest.php index 8ce603f..4df04ec 100644 --- a/core/modules/system/src/Tests/Form/RadioTest.php +++ b/core/modules/system/src/Tests/Form/RadioTest.php @@ -1,10 +1,5 @@ t('Radio'), + '#title' => $this->t('Radio'), '#type' => 'radio', '#return_value' => $return_value, '#default_value' => $default_value, diff --git a/core/modules/system/tests/modules/form_test/src/Form/FormTestRadiosZeroForm.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestRadiosZeroForm.php index bd34b65..95fc9ea 100644 --- a/core/modules/system/tests/modules/form_test/src/Form/FormTestRadiosZeroForm.php +++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestRadiosZeroForm.php @@ -1,10 +1,5 @@ set('json', $json); $form['radio_off'] = [ - '#title' => t('Radio off'), + '#title' => $this->t('Radio off'), '#type' => 'radios', '#options' => ['foo', 'bar', 'baz'], ]; $form['radio_zero_default'] = [ - '#title' => t('Zero default'), + '#title' => $this->t('Zero default'), '#type' => 'radios', '#options' => ['foo', 'bar', 'baz'], '#default_value' => 0, ]; $form['radio_string_zero_default'] = [ - '#title' => t('Zero default (string)'), + '#title' => $this->t('Zero default (string)'), '#type' => 'radios', '#options' => ['foo', 'bar', 'baz'], '#default_value' => '0',