You are here

protected function AutomaticUpdatesFunctionalTestBase::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.

6 calls to AutomaticUpdatesFunctionalTestBase::setCoreVersion()
FileSystemOperationsTest::setUp in tests/src/Functional/FileSystemOperationsTest.php
ReadinessValidationTest::setUp in tests/src/Functional/ReadinessValidationTest.php
UpdaterFormTest::testFormNotDisplayedIfAlreadyCurrent in tests/src/Functional/UpdaterFormTest.php
Tests that the form doesn't display any buttons if Drupal is up-to-date.
UpdaterFormTest::testMinorVersionUpdateNotSupported in tests/src/Functional/UpdaterFormTest.php
Tests that updating to a different minor version isn't supported.
UpdaterFormTest::testTableLooksCorrect in tests/src/Functional/UpdaterFormTest.php
Tests that available updates are rendered correctly in a table.

... See full list

File

tests/src/Functional/AutomaticUpdatesFunctionalTestBase.php, line 45

Class

AutomaticUpdatesFunctionalTestBase
Base class for functional tests of the Automatic Updates module.

Namespace

Drupal\Tests\automatic_updates\Functional

Code

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