diff --git a/core/modules/dblog/src/Tests/DbLogTest.php b/core/modules/dblog/src/Tests/DbLogTest.php index 6ef7f84..52e801f 100644 --- a/core/modules/dblog/src/Tests/DbLogTest.php +++ b/core/modules/dblog/src/Tests/DbLogTest.php @@ -74,7 +74,6 @@ function testDbLog() { $this->verifyReports(); $this->verifyBreadcrumbs(); $this->verifyLinkEscaping(); - $this->verifyMessageEscaping(); // Verify the overview table sorting. $orders = array('Date', 'Type', 'User'); $sorts = array('asc', 'desc'); @@ -284,27 +283,6 @@ private function verifyLinkEscaping() { } /** - * Test the escaping of message in the operation row of a database log detail - * page. - */ - private function verifyMessageEscaping() { - $link = \Drupal::l('View', Url::fromRoute('entity.node.canonical', array('node' => 1))); - $message = String::format('%message', array( - '%message' => 'Log entry added to do the verifyMessageEscaping test.', - )); - $this->generateLogEntries(1, array( - 'message' => $message, - 'link' => $link, - )); - - $result = db_query_range('SELECT wid FROM {watchdog} ORDER BY wid DESC', 0, 1); - $this->drupalGet('admin/reports/dblog/event/' . $result->fetchField()); - - // Check if the link exists (unescaped). - $this->assertRaw($message); - } - - /** * Generates and then verifies some user events. */ private function doUser() {