Commit 9db502ce authored by catch's avatar catch
Browse files

Issue #3207893 by alexpott, Spokje, larowlan, catch: Set system.css_js_query_string during install

parent 500ba2d9
......@@ -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.
......
......@@ -566,10 +566,6 @@ public function installDrupal() {
// as expected.
$this->container->get('cache_tags.invalidator')->resetChecksums();
// Set the dummy query string added to all CSS and JavaScript files.
// @todo Remove in https://www.drupal.org/project/drupal/issues/3207893.
_drupal_flush_css_js();
// Generate a route to prime the url generator with the correct base url.
// @todo Remove in https://www.drupal.org/project/drupal/issues/3207896.
Url::fromRoute('<front>')->setAbsolute()->toString();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment