AdvisoriesUpdatePathTest.php in Drupal 9
File
core/modules/system/tests/src/Functional/SecurityAdvisories/AdvisoriesUpdatePathTest.php
View source
<?php
namespace Drupal\Tests\system\Functional\SecurityAdvisories;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class AdvisoriesUpdatePathTest extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() : void {
$this->databaseDumpFiles = [
dirname(__DIR__, 3) . '/fixtures/update/drupal-8.8.0.filled.standard.php.gz',
];
}
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'));
}
}