protected function UpdateSemverCoreTest::setProjectInstalledVersion in Drupal 9
Sets the version to x.x.x when no project-specific mapping is defined.
Parameters
string $version: The version.
Overrides UpdateSemverTestBase::setProjectInstalledVersion
7 calls to UpdateSemverCoreTest::setProjectInstalledVersion()
- UpdateSemverCoreTest::testBrokenThenFixedUpdates in core/
modules/ update/ tests/ src/ Functional/ UpdateSemverCoreTest.php - Checks that Drupal recovers after problems connecting to update server.
- UpdateSemverCoreTest::testLanguageModuleUpdate in core/
modules/ update/ tests/ src/ Functional/ UpdateSemverCoreTest.php - Checks language module in core package at admin/reports/updates.
- UpdateSemverCoreTest::testModulePageRegularUpdate in core/
modules/ update/ tests/ src/ Functional/ UpdateSemverCoreTest.php - Checks the messages at admin/modules when an update is missing.
- UpdateSemverCoreTest::testModulePageRunCron in core/
modules/ update/ tests/ src/ Functional/ UpdateSemverCoreTest.php - Checks that running cron updates the list of available updates.
- UpdateSemverCoreTest::testModulePageSecurityUpdate in core/
modules/ update/ tests/ src/ Functional/ UpdateSemverCoreTest.php - Checks the messages at admin/modules when a security update is missing.
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();
}