diff --git a/modules/core/asset/tests/src/Functional/AssetCRUDTest.php b/modules/core/asset/tests/src/Functional/AssetCRUDTest.php index fa0b53d0e9..bb3a44029e 100644 --- a/modules/core/asset/tests/src/Functional/AssetCRUDTest.php +++ b/modules/core/asset/tests/src/Functional/AssetCRUDTest.php @@ -40,7 +40,7 @@ public function testCreateAsset() { ]; $this->drupalGet('asset/add/default'); - $this->submitForm($edit, $this->t('Save')); + $this->submitForm($edit, 'Save'); $result = \Drupal::entityTypeManager() ->getStorage('asset') @@ -85,7 +85,7 @@ public function testEditAsset() { 'name[0][value]' => $this->randomMachineName(), ]; $this->drupalGet($asset->toUrl('edit-form')); - $this->submitForm($edit, $this->t('Save')); + $this->submitForm($edit, 'Save'); $this->assertSession()->pageTextContains($edit['name[0][value]']); } @@ -100,7 +100,7 @@ public function testDeleteAsset() { $asset_id = $asset->id(); $this->drupalGet($asset->toUrl('delete-form')); - $this->submitForm([], $this->t('Delete')); + $this->submitForm([], 'Delete'); $this->assertSession()->responseContains($this->t('The @entity-type %label has been deleted.', [ '@entity-type' => $asset->getEntityType()->getSingularLabel(), '%label' => $label, diff --git a/modules/core/login/tests/src/Functional/UserLoginTest.php b/modules/core/login/tests/src/Functional/UserLoginTest.php index 93896bb9f0..16cdcaa88f 100644 --- a/modules/core/login/tests/src/Functional/UserLoginTest.php +++ b/modules/core/login/tests/src/Functional/UserLoginTest.php @@ -141,7 +141,7 @@ public function assertFailedLoginUsingEmail(User $account, $flood_trigger = NULL $this->submitForm([ 'name' => $account->getEmail(), 'pass' => $account->passRaw, - ], $this->t('Log in')); + ], 'Log in'); if (isset($flood_trigger)) { $this->assertSession()->statusCodeEquals(403); $this->assertSession()->fieldNotExists('pass'); @@ -187,7 +187,7 @@ protected function drupalLoginUsingEmail(AccountInterface $account) { $this->submitForm([ 'name' => $account->getEmail(), 'pass' => $account->passRaw, - ], $this->t('Log in')); + ], 'Log in'); // @see ::drupalUserIsLoggedIn() $account->sessionId = $this->getSession()->getCookie(\Drupal::service('session_configuration')->getOptions(\Drupal::request())['name']); diff --git a/modules/core/plan/tests/src/Functional/PlanCRUDTest.php b/modules/core/plan/tests/src/Functional/PlanCRUDTest.php index 541a023431..86ad32cb15 100644 --- a/modules/core/plan/tests/src/Functional/PlanCRUDTest.php +++ b/modules/core/plan/tests/src/Functional/PlanCRUDTest.php @@ -40,7 +40,7 @@ public function testCreatePlan() { ]; $this->drupalGet('plan/add/default'); - $this->submitForm($edit, $this->t('Save')); + $this->submitForm($edit, 'Save'); $result = \Drupal::entityTypeManager() ->getStorage('plan') @@ -85,7 +85,7 @@ public function testEditPlan() { 'name[0][value]' => $this->randomMachineName(), ]; $this->drupalGet($plan->toUrl('edit-form')); - $this->submitForm($edit, $this->t('Save')); + $this->submitForm($edit, 'Save'); $this->assertSession()->pageTextContains($edit['name[0][value]']); } @@ -101,7 +101,7 @@ public function testDeletePlan() { $plan_id = $plan->id(); $this->drupalGet($plan->toUrl('delete-form')); - $this->submitForm([], $this->t('Delete')); + $this->submitForm([], 'Delete'); $this->assertSession()->responseContains($this->t('The @entity-type %label has been deleted.', [ '@entity-type' => $plan->getEntityType()->getSingularLabel(), '%label' => $label,