function PackageManagerKernelTestBase::setCoreVersion
Sets the current (running) version of core, as known to the Update module.
@todo Remove this function with use of the trait from the Update module in https://drupal.org/i/3348234.
Parameters
string $version: The current version of core.
2 calls to PackageManagerKernelTestBase::setCoreVersion()
- ProjectInfoTest::testGetInstallableReleases in core/
modules/ package_manager/ tests/ src/ Kernel/ ProjectInfoTest.php - @covers ::getInstallableReleases
- ProjectInfoTest::testInstalledVersionSafe in core/
modules/ package_manager/ tests/ src/ Kernel/ ProjectInfoTest.php - Tests checking if the currently installed version of a project is safe.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ PackageManagerKernelTestBase.php, line 339
Class
- PackageManagerKernelTestBase
- Base class for kernel tests of Package Manager's functionality.
Namespace
Drupal\Tests\package_manager\KernelCode
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.