1 common.test CommonJavaScriptTestCase::testAddJsFileWithQueryString()

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

File

core/modules/simpletest/tests/common.test, line 1833
Tests for common.inc functionality.

Class

CommonJavaScriptTestCase
Tests for the JavaScript system.

Code

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