Loading core/modules/filter/tests/src/Functional/FilterAdminTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -320,7 +320,7 @@ public function testFilterAdmin() { $edit['body[0][format]'] = $plain; $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save')); $this->drupalGet('node/' . $node->id()); $this->assertEscaped($text, 'The "Plain text" text format escapes all HTML tags.'); $this->assertEscaped($text); $this->config('filter.settings') ->set('always_show_fallback_choice', FALSE) ->save(); Loading core/modules/forum/tests/src/Functional/ForumTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -547,7 +547,7 @@ public function testForumWithNewPost() { $this->assertSession()->statusCodeEquals(200); // Verify there is no unintentional HTML tag escaping. $this->assertNoEscaped('<', ''); $this->assertNoEscaped('<'); } /** Loading core/modules/help/tests/src/Functional/HelpTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -137,10 +137,10 @@ protected function verifyHelp($response = 200) { foreach ($admin_tasks as $task) { $this->assertLink($task['title']); // Ensure there are no double escaped '&' or '<' characters. $this->assertNoEscaped('&', 'The help text does not have double escaped &.'); $this->assertNoEscaped('<', 'The help text does not have double escaped <.'); $this->assertNoEscaped('&'); $this->assertNoEscaped('<'); // Ensure there are no escaped '<' characters. $this->assertNoEscaped('<', 'The help text does not have single escaped <.'); $this->assertNoEscaped('<'); } // Ensure there are no double escaped '&' or '<' characters. $this->assertNoEscaped('&'); Loading core/modules/node/tests/src/Functional/PagePreviewTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -200,7 +200,7 @@ public function testPagePreview() { // Check that the preview is displaying the title, body and term. $expected_title = $edit[$title_key] . ' | Drupal'; $this->assertSession()->titleEquals($expected_title); $this->assertEscaped($edit[$title_key], 'Title displayed and escaped.'); $this->assertEscaped($edit[$title_key]); $this->assertText($edit[$body_key], 'Body displayed.'); $this->assertText($edit[$term_key], 'Term displayed.'); $this->assertLink(t('Back to content editing')); Loading Loading @@ -240,7 +240,7 @@ public function testPagePreview() { // Return to page preview to check everything is as expected. $this->drupalPostForm(NULL, [], t('Preview')); $this->assertSession()->titleEquals($expected_title); $this->assertEscaped($edit[$title_key], 'Title displayed and escaped.'); $this->assertEscaped($edit[$title_key]); $this->assertText($edit[$body_key], 'Body displayed.'); $this->assertText($edit[$term_key], 'Term displayed.'); $this->assertLink(t('Back to content editing')); Loading core/modules/search/tests/src/Functional/SearchCommentTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -173,7 +173,7 @@ public function testSearchResultsComment() { // Verify that comment is rendered using proper format. $this->assertText($comment_body, 'Comment body text found in search results.'); $this->assertNoRaw(t('n/a'), 'HTML in comment body is not hidden.'); $this->assertNoEscaped($edit_comment['comment_body[0][value]'], 'HTML in comment body is not escaped.'); $this->assertNoEscaped($edit_comment['comment_body[0][value]']); // Search for the evil script comment subject. $edit = [ Loading Loading
core/modules/filter/tests/src/Functional/FilterAdminTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -320,7 +320,7 @@ public function testFilterAdmin() { $edit['body[0][format]'] = $plain; $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save')); $this->drupalGet('node/' . $node->id()); $this->assertEscaped($text, 'The "Plain text" text format escapes all HTML tags.'); $this->assertEscaped($text); $this->config('filter.settings') ->set('always_show_fallback_choice', FALSE) ->save(); Loading
core/modules/forum/tests/src/Functional/ForumTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -547,7 +547,7 @@ public function testForumWithNewPost() { $this->assertSession()->statusCodeEquals(200); // Verify there is no unintentional HTML tag escaping. $this->assertNoEscaped('<', ''); $this->assertNoEscaped('<'); } /** Loading
core/modules/help/tests/src/Functional/HelpTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -137,10 +137,10 @@ protected function verifyHelp($response = 200) { foreach ($admin_tasks as $task) { $this->assertLink($task['title']); // Ensure there are no double escaped '&' or '<' characters. $this->assertNoEscaped('&', 'The help text does not have double escaped &.'); $this->assertNoEscaped('<', 'The help text does not have double escaped <.'); $this->assertNoEscaped('&'); $this->assertNoEscaped('<'); // Ensure there are no escaped '<' characters. $this->assertNoEscaped('<', 'The help text does not have single escaped <.'); $this->assertNoEscaped('<'); } // Ensure there are no double escaped '&' or '<' characters. $this->assertNoEscaped('&'); Loading
core/modules/node/tests/src/Functional/PagePreviewTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -200,7 +200,7 @@ public function testPagePreview() { // Check that the preview is displaying the title, body and term. $expected_title = $edit[$title_key] . ' | Drupal'; $this->assertSession()->titleEquals($expected_title); $this->assertEscaped($edit[$title_key], 'Title displayed and escaped.'); $this->assertEscaped($edit[$title_key]); $this->assertText($edit[$body_key], 'Body displayed.'); $this->assertText($edit[$term_key], 'Term displayed.'); $this->assertLink(t('Back to content editing')); Loading Loading @@ -240,7 +240,7 @@ public function testPagePreview() { // Return to page preview to check everything is as expected. $this->drupalPostForm(NULL, [], t('Preview')); $this->assertSession()->titleEquals($expected_title); $this->assertEscaped($edit[$title_key], 'Title displayed and escaped.'); $this->assertEscaped($edit[$title_key]); $this->assertText($edit[$body_key], 'Body displayed.'); $this->assertText($edit[$term_key], 'Term displayed.'); $this->assertLink(t('Back to content editing')); Loading
core/modules/search/tests/src/Functional/SearchCommentTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -173,7 +173,7 @@ public function testSearchResultsComment() { // Verify that comment is rendered using proper format. $this->assertText($comment_body, 'Comment body text found in search results.'); $this->assertNoRaw(t('n/a'), 'HTML in comment body is not hidden.'); $this->assertNoEscaped($edit_comment['comment_body[0][value]'], 'HTML in comment body is not escaped.'); $this->assertNoEscaped($edit_comment['comment_body[0][value]']); // Search for the evil script comment subject. $edit = [ Loading