3 namespace Drupal\Tests\system\Functional\Update;
5 use Drupal\FunctionalTests\Update\UpdatePathTestBase;
8 * Ensures that response.gzip is removed from system.performance configuration.
12 class RemoveResponseGzipFromSystemPerformanceConfigurationTest extends UpdatePathTestBase {
17 protected function setDatabaseDumpFiles() {
18 $this->databaseDumpFiles = [
19 __DIR__ . '/../../../../tests/fixtures/update/drupal-8.bare.standard.php.gz',
24 * Ensures that response.gzip is removed from system.performance
27 public function testUpdate() {
28 \Drupal::configFactory()->getEditable('system.performance')
29 ->set('response.gzip', 1)
34 $system_performance = \Drupal::config('system.performance')->get();
35 $this->assertFalse(isset($system_performance['response.gzip']), 'Configuration response.gzip has been removed from system.performance.');