From a750981e60073c6f53ad4086983b6841e414fe41 Mon Sep 17 00:00:00 2001 From: Brandon Bergren Date: Wed, 4 Jun 2014 13:50:24 -0500 Subject: [PATCH] Fix assertUniqueTextHelper. --- core/modules/simpletest/src/WebTestBase.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php index f2a229a..2b38674 100644 --- a/core/modules/simpletest/src/WebTestBase.php +++ b/core/modules/simpletest/src/WebTestBase.php @@ -2970,6 +2970,9 @@ protected function assertNoUniqueText($text, $message = '', $group = 'Other') { * TRUE on pass, FALSE on fail. */ protected function assertUniqueTextHelper($text, $message = '', $group, $be_unique) { + if ($text instanceof SafeMarkup) { + $text = (string) $text; + } if ($this->plainTextContent === FALSE) { $this->plainTextContent = Xss::filter($this->drupalGetContent(), array()); } -- 1.7.10.4