function AdvisoriesUpdatePathTest::testUpdatePath

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

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