1 common.test | CommonCascadingStylesheetsTestCase::testAddCssFileWithQueryString() |
Tests that the query string remains intact when adding CSS files that have query string parameters.
File
- core/
modules/ simpletest/ tests/ common.test, line 931 - Tests for common.inc functionality.
Class
- CommonCascadingStylesheetsTestCase
- Test the Backdrop CSS system.
Code
function testAddCssFileWithQueryString() {
$this->backdropGet('common-test/query-string');
$query_string = state_get('css_js_query_string', '0');
$this->assertRaw(backdrop_get_path('module', 'node') . '/css/node.admin.css?' . $query_string, 'Query string was appended correctly to css.');
$this->assertRaw(backdrop_get_path('module', 'node') . '/node-fake.css?arg1=value1&arg2=value2', 'Query string not escaped on a URI.');
}