Skip to content
Snippets Groups Projects
Commit f0f758a4 authored by catch's avatar catch
Browse files

Issue #3207893 by alexpott: Set system.css_js_query_string during install

parent db3ad8f8
No related branches found
No related tags found
4 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable
......@@ -1313,6 +1313,9 @@ function system_install() {
$site->set('name', 'Drupal');
}
$site->save(TRUE);
// Populate the dummy query string added to all CSS and JavaScript files.
_drupal_flush_css_js();
}
/**
......
......@@ -21,6 +21,7 @@ class InstallerTest extends InstallerTestBase {
* Ensures that the user page is available after installation.
*/
public function testInstaller() {
$this->assertNotNull(\Drupal::state()->get('system.css_js_query_string'), 'The dummy query string should be set during install');
$this->assertSession()->addressEquals('user/1');
$this->assertSession()->statusCodeEquals(200);
// Confirm that we are logged-in after installation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment