summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-08 23:35:20 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-08 23:35:20 +0000
commit08b598837f309594adbd4ea27b00f8ad13f5b433 (patch)
tree454dd54416f3f3a678c799856b7f1f083379d3aa
parent9ad64a3a50f78ecc667e5f2b499ed94bc29b2030 (diff)
downloadbrdo-08b598837f309594adbd4ea27b00f8ad13f5b433.tar.gz
brdo-08b598837f309594adbd4ea27b00f8ad13f5b433.tar.bz2
#705854 follow-up by scor: Testbot fix attempt #2.
-rw-r--r--modules/simpletest/drupal_web_test_case.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index dab7a575d..4c15e884d 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -1452,12 +1452,6 @@ class DrupalWebTestCase extends DrupalTestCase {
protected function drupalGet($path, array $options = array(), array $headers = array()) {
$options['absolute'] = TRUE;
- // CURL breaks if the URL contains a fragment.
- // @todo remove when http://drupal.org/node/671520 is fixed.
- // Strips off any fragment from the path and options.
- $path = array_shift(explode('#', $path));
- unset($options['fragment']);
-
// We re-using a CURL connection here. If that connection still has certain
// options set, it might change the GET into a POST. Make sure we clear out
// previous options.
@@ -1965,6 +1959,10 @@ class DrupalWebTestCase extends DrupalTestCase {
$this->assertTrue(isset($urls[$index]), t('Clicked link %label (@url_target) from @url_before', array('%label' => $label, '@url_target' => $url_target, '@url_before' => $url_before)), t('Browser'));
if (isset($url_target)) {
+ // CURL breaks in drupalGet() if the URL contains a fragment.
+ // @todo remove when http://drupal.org/node/671520 is fixed.
+ // Strips off any fragment from the path.
+ $url_target = array_shift(explode('#', $url_target));
return $this->drupalGet($url_target);
}
return FALSE;