function JavaScriptTestCase::testAddJsFileWithQueryString

Tests that the query string remains intact when adding JavaScript files that have query string parameters.

File

drupal/modules/simpletest/tests/common.test, line 1881
Tests for common.inc functionality.

Class

JavaScriptTestCase
Tests for the JavaScript system.

Code

function testAddJsFileWithQueryString() {
  $this
    ->drupalGet('common-test/query-string');
  $query_string = variable_get('css_js_query_string', '0');
  $this
    ->assertRaw(drupal_get_path('module', 'node') . '/node.js?' . $query_string, 'Query string was appended correctly to js.');
}