function DevReleaseTest::setCoreVersion

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

Parameters

string $version: The current version of core.

1 call to DevReleaseTest::setCoreVersion()
DevReleaseTest::setUp in core/modules/update/tests/src/Kernel/DevReleaseTest.php

File

core/modules/update/tests/src/Kernel/DevReleaseTest.php, line 54

Class

DevReleaseTest
Tests the project data when the installed version is a dev version.

Namespace

Drupal\Tests\update\Kernel

Code

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

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