You are here

public function AdvisoriesUpdatePathTest::testUpdatePath in Drupal 9

Tests advisories settings update path.

File

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

Class

AdvisoriesUpdatePathTest
Tests advisories settings update path.

Namespace

Drupal\Tests\system\Functional\SecurityAdvisories

Code

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'));
}