class AdvisoriesUpdatePathTest

Tests advisories settings update path.

@group system

Hierarchy

Expanded class hierarchy of AdvisoriesUpdatePathTest

File

core/modules/system/tests/src/Functional/SecurityAdvisories/AdvisoriesUpdatePathTest.php, line 12

Namespace

Drupal\Tests\system\Functional\SecurityAdvisories
View source
class AdvisoriesUpdatePathTest extends UpdatePathTestBase {
  
  /**
   * {@inheritdoc}
   */
  protected function setDatabaseDumpFiles() : void {
    $this->databaseDumpFiles = [
      dirname(__DIR__, 3) . '/fixtures/update/drupal-8.8.0.filled.standard.php.gz',
    ];
  }
  
  /**
   * Tests advisories settings update path.
   */
  public function testUpdatePath() : void {
    $this->assertTrue($this->config('system.advisories')
      ->isNew());
    $this->runUpdates();
    $this->assertSame(6, $this->config('system.advisories')
      ->get('interval_hours'));
    $this->assertSame(TRUE, $this->config('system.advisories')
      ->get('enabled'));
  }

}

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