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