diff --git a/core/modules/dblog/tests/src/Functional/DbLogTest.php b/core/modules/dblog/tests/src/Functional/DbLogTest.php index 32480eb0e7..76bdd6151d 100644 --- a/core/modules/dblog/tests/src/Functional/DbLogTest.php +++ b/core/modules/dblog/tests/src/Functional/DbLogTest.php @@ -750,22 +750,6 @@ protected function getSeverityConstant($class) { } /** - * Extracts the text contained by the XHTML element. - * - * @param \SimpleXMLElement $element - * Element to extract text from. - * - * @return string - * Extracted text. - */ - protected function asText(\SimpleXMLElement $element) { - if (!is_object($element)) { - return $this->fail('The element is not an element.'); - } - return trim(html_entity_decode(strip_tags($element->asXML()))); - } - - /** * Confirms that a log message appears on the database log overview screen. * * This function should only be used for the admin/reports/dblog page, because