function UpdateSemverCoreTest::setProjectInstalledVersion
Sets the version to x.x.x when no project-specific mapping is defined.
Parameters
string $version: The version.
File
-
core/
modules/ update/ tests/ src/ Functional/ UpdateSemverCoreTest.php, line 35
Class
- UpdateSemverCoreTest
- Tests the semantic version handling in the Update Manager.
Namespace
Drupal\Tests\update\FunctionalCode
protected function setProjectInstalledVersion($version) {
$setting = [
'#all' => [
'version' => $version,
],
];
$this->config('update_test.settings')
->set('system_info', $setting)
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.