public function RemoveResponseGzipFromSystemPerformanceConfigurationTest::testUpdate in Drupal 8
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.');
}