diff options
Diffstat (limited to 'modules/simpletest/tests/common.test')
-rw-r--r-- | modules/simpletest/tests/common.test | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index 61e6f8d26..315b77622 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -749,8 +749,9 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase { */ function testAddCssFileWithQueryString() { $this->drupalGet('common-test/query-string'); - $query_string = substr(variable_get('css_js_query_string', '0'), 0, 1); - $this->assertRaw(drupal_get_path('module', 'node') . '/node.css?arg1=value1&arg2=value2&' . $query_string, t('Query string was appended correctly to css.')); + $query_string = variable_get('css_js_query_string', '0'); + $this->assertRaw(drupal_get_path('module', 'node') . '/node.css?' . $query_string, t('Query string was appended correctly to css.')); + $this->assertRaw(drupal_get_path('module', 'node') . '/node-fake.css?arg1=value1&arg2=value2', t('Query string not escaped on a URI.')); } } @@ -1354,8 +1355,8 @@ class JavaScriptTestCase extends DrupalWebTestCase { */ function testAddJsFileWithQueryString() { $this->drupalGet('common-test/query-string'); - $query_string = substr(variable_get('css_js_query_string', '0'), 0, 1); - $this->assertRaw(drupal_get_path('module', 'node') . '/node.js?arg1=value1&arg2=value2&' . $query_string, t('Query string was appended correctly to js.')); + $query_string = variable_get('css_js_query_string', '0'); + $this->assertRaw(drupal_get_path('module', 'node') . '/node.js?' . $query_string, t('Query string was appended correctly to js.')); } } |