function CascadingStylesheetsTest::testAddCssFileWithQueryString

Tests that CSS query string remains intact when added to file.

File

drupal/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php, line 227
Definition of Drupal\system\Tests\Common\CascadingStylesheetsTest.

Class

CascadingStylesheetsTest
Tests the Drupal CSS system.

Namespace

Drupal\system\Tests\Common

Code

function testAddCssFileWithQueryString() {
  $this
    ->drupalGet('common-test/query-string');
  $query_string = variable_get('css_js_query_string', '0');
  $this
    ->assertRaw(drupal_get_path('module', 'node') . '/css/node.admin.css?' . $query_string, 'Query string was appended correctly to css.');
  $this
    ->assertRaw(drupal_get_path('module', 'node') . '/node-fake.css?arg1=value1&arg2=value2', 'Query string not escaped on a URI.');
}