Commit f4fd2d73 authored by catch's avatar catch
Browse files

Issue #3166349 by paulocs, snehalgaikwad, naresh_bavaskar, mondrake: Remove...

Issue #3166349 by paulocs, snehalgaikwad, naresh_bavaskar, mondrake: Remove uses of t() in assertNoText()
parent 99b9ff85
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ public function testBlockContentTypeDeletion() {
      t('%label is used by 1 custom block on your site. You can not remove this block type until you have removed all of the %label blocks.', ['%label' => $type->label()]),
      'The block type will not be deleted until all blocks of that type are removed.'
    );
    $this->assertNoText(t('This action cannot be undone.'), 'The block type deletion confirmation form is not available.');
    $this->assertNoText('This action cannot be undone.', 'The block type deletion confirmation form is not available.');

    // Delete the block.
    $block->delete();
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ public function testRecentCommentBlock() {
    $this->drupalLogout();
    user_role_revoke_permissions(RoleInterface::ANONYMOUS_ID, ['access comments']);
    $this->drupalGet('');
    $this->assertNoText(t('Recent comments'));
    $this->assertNoText('Recent comments');
    user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, ['access comments']);

    // Test that a user with the 'access comments' permission can see the
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ public function testBookCommentPrint() {
    $this->assertText($comment_subject, 'Comment subject found');
    $this->assertText($comment_body, 'Comment body found');

    $this->assertNoText(t('Add new comment'), 'Comment form not found');
    $this->assertNoText('Add new comment', 'Comment form not found');
    // Verify that the comment form subject field is not found.
    $this->assertSession()->fieldNotExists('subject[0][value]');
  }
+1 −1
Original line number Diff line number Diff line
@@ -180,7 +180,7 @@ public function testCommentFieldCreate() {
    ];
    $this->drupalPostForm('admin/config/people/accounts/fields/user.user.field_user_comment/storage', $edit, t('Save field settings'));
    // We shouldn't get an error message.
    $this->assertNoText(t('An illegal choice has been detected. Please contact the site administrator.'));
    $this->assertNoText('An illegal choice has been detected. Please contact the site administrator.');
  }

  /**
+3 −3
Original line number Diff line number Diff line
@@ -343,8 +343,8 @@ public function testTwoPagers() {
    $account = $this->drupalCreateUser(['administer node display']);
    $this->drupalLogin($account);
    $this->drupalGet('admin/structure/types/manage/article/display');
    $this->assertNoText(t('Pager ID: @id', ['@id' => 0]), 'No summary for standard pager');
    $this->assertText(t('Pager ID: @id', ['@id' => 1]));
    $this->assertNoText('Pager ID: 0', 'No summary for standard pager');
    $this->assertText('Pager ID: 1');
    $this->drupalPostForm(NULL, [], 'comment_settings_edit');
    // Change default pager to 2.
    $this->drupalPostForm(NULL, ['fields[comment][settings_edit_form][settings][pager_id]' => 2], t('Save'));
@@ -352,7 +352,7 @@ public function testTwoPagers() {
    // Revert the changes.
    $this->drupalPostForm(NULL, [], 'comment_settings_edit');
    $this->drupalPostForm(NULL, ['fields[comment][settings_edit_form][settings][pager_id]' => 0], t('Save'));
    $this->assertNoText(t('Pager ID: @id', ['@id' => 0]), 'No summary for standard pager');
    $this->assertNoText('Pager ID: 0', 'No summary for standard pager');

    $this->drupalLogin($this->adminUser);

Loading