function AssetCompressUpdatePathTest::testRunUpdates
Same name and namespace in other branches
- 11.x core/modules/system/tests/src/Functional/Update/AssetCompressUpdatePathTest.php \Drupal\Tests\system\Functional\Update\AssetCompressUpdatePathTest::testRunUpdates()
Tests the upgrade path for renaming gzip keys to compress.
File
-
core/
modules/ system/ tests/ src/ Functional/ Update/ AssetCompressUpdatePathTest.php, line 31
Class
- AssetCompressUpdatePathTest
- Tests the upgrade path renaming system.performance gzip keys to compress.
Namespace
Drupal\Tests\system\Functional\UpdateCode
public function testRunUpdates() : void {
$config = \Drupal::config('system.performance');
$this->assertIsBool($config->get('css.gzip'));
$this->assertIsBool($config->get('js.gzip'));
$this->runUpdates();
$config = \Drupal::config('system.performance');
$this->assertNull($config->get('css.gzip'));
$this->assertNull($config->get('js.gzip'));
$this->assertIsBool($config->get('css.compress'));
$this->assertIsBool($config->get('js.compress'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.