function RemoveResponseGzipFromSystemPerformanceConfigurationTest::testUpdate
Ensures that response.gzip is removed from system.performance configuration.
File
-
core/
modules/ system/ tests/ src/ Functional/ Update/ RemoveResponseGzipFromSystemPerformanceConfigurationTest.php, line 33
Class
- RemoveResponseGzipFromSystemPerformanceConfigurationTest
- Ensures that response.gzip is removed from system.performance configuration.
Namespace
Drupal\Tests\system\Functional\UpdateCode
public function testUpdate() {
\Drupal::configFactory()->getEditable('system.performance')
->set('response.gzip', 1)
->save();
$this->runUpdates();
$system_performance = \Drupal::config('system.performance')->get();
$this->assertFalse(isset($system_performance['response.gzip']), 'Configuration response.gzip has been removed from system.performance.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.