Commit 439c314f authored by catch's avatar catch
Browse files

Issue #3187113 by longwave: Remove uses of t() in submitForm() calls

parent 32f43424
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -88,16 +88,12 @@ public function testCommentStatusFieldAccessStatus() {
    $this->drupalGet('node/add/article');
    $assert = $this->assertSession();
    $assert->fieldNotExists('comment[0][status]');
    $this->submitForm([
      'title[0][value]' => 'Node 1',
    ], t('Save'));
    $this->submitForm(['title[0][value]' => 'Node 1'], 'Save');
    $assert->fieldExists('subject[0][value]');
    $this->drupalLogin($this->commentAdmin);
    $this->drupalGet('node/add/article');
    $assert->fieldExists('comment[0][status]');
    $this->submitForm([
      'title[0][value]' => 'Node 2',
    ], t('Save'));
    $this->submitForm(['title[0][value]' => 'Node 2'], 'Save');
    $assert->fieldExists('subject[0][value]');
  }

+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ public function testModerationForm() {
    $this->assertSession()->optionNotExists('moderation_state[0][state]', 'archived');

    // Create new moderated content in draft.
    $this->submitForm(['moderation_state[0][state]' => 'draft'], t('Save'));
    $this->submitForm(['moderation_state[0][state]' => 'draft'], 'Save');

    $node = $this->drupalGetNodeByTitle('Some moderated content');
    $canonical_path = sprintf('node/%d', $node->id());
+2 −2
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ public function testDisableSetting() {
      $translatable_checkbox => TRUE,
      $language_alterable => TRUE,
    ];
    $this->submitForm($edit, t('Save configuration'));
    $this->submitForm($edit, 'Save configuration');

    $assert->pageTextContains(t('Settings successfully updated.'));

@@ -64,7 +64,7 @@ public function testDisableSetting() {
      $translatable_checkbox => TRUE,
      $language_alterable => TRUE,
    ];
    $this->submitForm($edit, t('Save configuration'));
    $this->submitForm($edit, 'Save configuration');

    $assert->pageTextContains(t('Settings successfully updated.'));

+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ public function testFileUploadErrors() {
    $edit = [
      'edit-title-0-value' => $this->randomString(),
    ];
    $this->submitForm($edit, t('Save'));
    $this->submitForm($edit, 'Save');

    $error_text = $this->getSession()->getPage()->find('css', '.field--name-field-ief-file .form-item--error-message')->getText();

+4 −4
Original line number Diff line number Diff line
@@ -58,10 +58,10 @@ public function testMigrateUpgradeExecute() {

    // Start the upgrade process.
    $this->drupalGet('/upgrade');
    $this->submitForm([], t('Continue'));
    $this->submitForm($edits, t('Review upgrade'));
    $this->submitForm([], t('I acknowledge I may lose data. Continue anyway.'));
    $this->submitForm([], t('Perform upgrade'));
    $this->submitForm([], 'Continue');
    $this->submitForm($edits, 'Review upgrade');
    $this->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
    $this->submitForm([], 'Perform upgrade');

    // Tests the migration log contains an error message.
    $migration = $this->getMigrationPluginManager()->createInstance('d7_file');
Loading