Commit 4a7c2054 authored by catch's avatar catch
Browse files

Issue #3153143 by ridhimaabrol24, Hardik_Patel_12, siddhant.bhosale,...

Issue #3153143 by ridhimaabrol24, Hardik_Patel_12, siddhant.bhosale, guptahemant, quietone, paulocs: Remove uses of t() in linkExists() and linkNotExists() calls
parent c7558c41
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -247,7 +247,7 @@ public function testBookExport() {

    // Load the book and verify there is no printer-friendly version link.
    $this->drupalGet('node/' . $this->book->id());
    $this->assertSession()->linkNotExists(t('Printer-friendly version'), 'Anonymous user is not shown link to printer-friendly version.');
    $this->assertSession()->linkNotExists('Printer-friendly version', 'Anonymous user is not shown link to printer-friendly version.');

    // Try getting the URL directly, and verify it fails.
    $this->drupalGet('book/export/html/' . $this->book->id());
@@ -427,14 +427,14 @@ public function testBookOutline() {
    // Create new node not yet a book.
    $empty_book = $this->drupalCreateNode(['type' => 'book']);
    $this->drupalGet('node/' . $empty_book->id() . '/outline');
    $this->assertSession()->linkNotExists(t('Book outline'), 'Book Author is not allowed to outline');
    $this->assertSession()->linkNotExists('Book outline', 'Book Author is not allowed to outline');

    $this->drupalLogin($this->adminUser);
    $this->drupalGet('node/' . $empty_book->id() . '/outline');
    $this->assertRaw(t('Book outline'));
    // Verify that the node does not belong to a book.
    $this->assertTrue($this->assertSession()->optionExists('edit-book-bid', 0)->isSelected());
    $this->assertSession()->linkNotExists(t('Remove from book outline'));
    $this->assertSession()->linkNotExists('Remove from book outline');

    $edit = [];
    $edit['book[bid]'] = '1';
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ public function testCommentLinksAlter() {

    $this->drupalGet('node/' . $this->node->id());

    $this->assertSession()->linkExists(t('Report'));
    $this->assertSession()->linkExists('Report');
  }

}
+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ public function testCommentLinks() {
      // In teaser view, a link containing the comment count is always
      // expected.
      if ($path == 'node') {
        $this->assertSession()->linkExists(t('1 comment'));
        $this->assertSession()->linkExists('1 comment');
      }
      $this->assertSession()->linkExists('Add new comment');
    }
+2 −2
Original line number Diff line number Diff line
@@ -60,8 +60,8 @@ public function testCommentNewCommentsIndicator() {
    // node.
    $this->drupalLogin($this->adminUser);
    $this->drupalGet('node');
    $this->assertSession()->linkNotExists(t('@count comments', ['@count' => 0]));
    $this->assertSession()->linkExists(t('Read more'));
    $this->assertSession()->linkNotExists('0 comments');
    $this->assertSession()->linkExists('Read more');
    // Verify the data-history-node-last-comment-timestamp attribute, which is
    // used by the drupal.node-new-comments-link library to determine whether
    // a "x new comments" link might be necessary or not. We do this in
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ public function testMapperListPage() {
      $this->assertRaw('<th>' . t('Language') . '</th>');

      $this->drupalGet($base_url);
      $this->assertSession()->linkExists(t('Translate @title', ['@title' => $entity_type->getSingularLabel()]));
      $this->assertSession()->linkExists('Translate test configuration');
    }
  }

Loading