protected function UpdateSemverCoreTest::setProjectInstalledVersion in Drupal 10
Same name and namespace in other branches
- 9 core/modules/update/tests/src/Functional/UpdateSemverCoreTest.php \Drupal\Tests\update\Functional\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 36  
Class
- UpdateSemverCoreTest
 - Tests the Update Manager module through a series of functional tests using mock XML data.
 
Namespace
Drupal\Tests\update\FunctionalCode
protected function setProjectInstalledVersion($version) {
  $setting = [
    '#all' => [
      'version' => $version,
    ],
  ];
  $this
    ->config('update_test.settings')
    ->set('system_info', $setting)
    ->save();
}