summaryrefslogtreecommitdiff
path: root/modules/simpletest/drupal_web_test_case.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-03-30 05:35:35 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-03-30 05:35:35 +0000
commitf85f7cf8c109bdec720eb68c15c04f31b565a873 (patch)
treee3fc6655e447f5dd172e31e8a5a8e8d1a3dfd262 /modules/simpletest/drupal_web_test_case.php
parentba62c9c54f9554c2d101577bbb53910299369fe1 (diff)
downloadbrdo-f85f7cf8c109bdec720eb68c15c04f31b565a873.tar.gz
brdo-f85f7cf8c109bdec720eb68c15c04f31b565a873.tar.bz2
#349237 by c960657: Fix assertTitle()'s encoding of HTML attributes (with tests).
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r--modules/simpletest/drupal_web_test_case.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index b865d8659..8004b40dd 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -1821,7 +1821,7 @@ class DrupalWebTestCase {
* TRUE on pass, FALSE on fail.
*/
protected function assertTitle($title, $message, $group = 'Other') {
- return $this->assertTrue($this->xpath('//title[text()="' . $title . '"]'), $message, $group);
+ return $this->assertEqual(current($this->xpath('//title')), $title, $message, $group);
}
/**
@@ -1837,7 +1837,7 @@ class DrupalWebTestCase {
* TRUE on pass, FALSE on fail.
*/
protected function assertNoTitle($title, $message, $group = 'Other') {
- return $this->assertFalse($this->xpath('//title[text()="' . $title . '"]'), $message, $group);
+ return $this->assertNotEqual(current($this->xpath('//title')), $title, $message, $group);
}
/**