You are here

protected function AutomaticUpdatesKernelTestBase::setCoreVersion in Automatic Updates 8.2

Sets the current (running) version of core, as known to the Update module.

Parameters

string $version: The current version of core.

2 calls to AutomaticUpdatesKernelTestBase::setCoreVersion()
AutomaticUpdatesKernelTestBase::setUp in tests/src/Kernel/AutomaticUpdatesKernelTestBase.php
UpdateRecommenderTest::testNoUpdateAvailable in tests/src/Kernel/UpdateRecommenderTest.php
Tests fetching the recommended release when there is no update available.

File

tests/src/Kernel/AutomaticUpdatesKernelTestBase.php, line 71

Class

AutomaticUpdatesKernelTestBase
Base class for kernel tests of the Automatic Updates module.

Namespace

Drupal\Tests\automatic_updates\Kernel

Code

protected function setCoreVersion(string $version) : void {
  $this
    ->config('update_test.settings')
    ->set('system_info.#all.version', $version)
    ->save();
}