protected function UpdateCoreTest::setSystemInfo in Drupal 8
Sets the version to x.x.x when no project-specific mapping is defined.
Parameters
string $version: The version.
13 calls to UpdateCoreTest::setSystemInfo()
- UpdateCoreTest::testBrokenThenFixedUpdates in core/
modules/ update/ tests/ src/ Functional/ UpdateCoreTest.php - Checks that Drupal recovers after problems connecting to update server.
- UpdateCoreTest::testLanguageModuleUpdate in core/
modules/ update/ tests/ src/ Functional/ UpdateCoreTest.php - Checks language module in core package at admin/reports/updates.
- UpdateCoreTest::testMajorUpdateAvailable in core/
modules/ update/ tests/ src/ Functional/ UpdateCoreTest.php - Tests the Update Manager module when a major update is available.
- UpdateCoreTest::testModulePageRegularUpdate in core/
modules/ update/ tests/ src/ Functional/ UpdateCoreTest.php - Checks the messages at admin/modules when an update is missing.
- UpdateCoreTest::testModulePageRunCron in core/
modules/ update/ tests/ src/ Functional/ UpdateCoreTest.php - Checks that running cron updates the list of available updates.
File
- core/
modules/ update/ tests/ src/ Functional/ UpdateCoreTest.php, line 58
Class
- UpdateCoreTest
- Tests the Update Manager module through a series of functional tests using mock XML data.
Namespace
Drupal\Tests\update\FunctionalCode
protected function setSystemInfo($version) {
$setting = [
'#all' => [
'version' => $version,
],
];
$this
->config('update_test.settings')
->set('system_info', $setting)
->save();
}