class SystemRssDeleteTest

Tests that system.rss config is deleted.

Attributes

#[Group('update')] #[RunTestsInSeparateProcesses]

Hierarchy

Expanded class hierarchy of SystemRssDeleteTest

See also

system_post_update_delete_rss_config()

File

core/modules/system/tests/src/Functional/Update/SystemRssDeleteTest.php, line 16

Namespace

Drupal\Tests\system\Functional\Update
View source
class SystemRssDeleteTest extends UpdatePathTestBase {
  
  /**
   * {@inheritdoc}
   */
  protected function setDatabaseDumpFiles() : void {
    $this->databaseDumpFiles = [
      __DIR__ . '/../../../fixtures/update/drupal-10.3.0.bare.standard.php.gz',
    ];
  }
  
  /**
   * Ensures that system.rss is deleted after updating.
   */
  public function testUpdate() : void {
    $config = $this->config('system.rss');
    $this->assertFalse($config->isNew());
    $this->runUpdates();
    $config = $this->config('system.rss');
    $this->assertTrue($config->isNew());
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.