Loading core/modules/book/tests/src/Functional/BookTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -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()); Loading Loading @@ -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'; Loading core/modules/comment/tests/src/Functional/CommentLinksAlterTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ public function testCommentLinksAlter() { $this->drupalGet('node/' . $this->node->id()); $this->assertSession()->linkExists(t('Report')); $this->assertSession()->linkExists('Report'); } } core/modules/comment/tests/src/Functional/CommentLinksTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -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'); } Loading core/modules/comment/tests/src/Functional/CommentNewIndicatorTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading core/modules/config_translation/tests/src/Functional/ConfigTranslationOverviewTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
core/modules/book/tests/src/Functional/BookTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -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()); Loading Loading @@ -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'; Loading
core/modules/comment/tests/src/Functional/CommentLinksAlterTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ public function testCommentLinksAlter() { $this->drupalGet('node/' . $this->node->id()); $this->assertSession()->linkExists(t('Report')); $this->assertSession()->linkExists('Report'); } }
core/modules/comment/tests/src/Functional/CommentLinksTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -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'); } Loading
core/modules/comment/tests/src/Functional/CommentNewIndicatorTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading
core/modules/config_translation/tests/src/Functional/ConfigTranslationOverviewTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -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