protected function UpdateCoreTest::setSystemInfo in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/update/src/Tests/UpdateCoreTest.php \Drupal\update\Tests\UpdateCoreTest::setSystemInfo()
Sets the version to x.x.x when no project-specific mapping is defined.
Parameters
string $version: The version.
9 calls to UpdateCoreTest::setSystemInfo()
- UpdateCoreTest::testLanguageModuleUpdate in core/
modules/ update/ src/ Tests/ UpdateCoreTest.php - Checks language module in core package at admin/reports/updates.
- UpdateCoreTest::testMajorUpdateAvailable in core/
modules/ update/ src/ Tests/ UpdateCoreTest.php - Tests the Update Manager module when a major update is available.
- UpdateCoreTest::testModulePageRegularUpdate in core/
modules/ update/ src/ Tests/ UpdateCoreTest.php - Checks the messages at admin/modules when an update is missing.
- UpdateCoreTest::testModulePageRunCron in core/
modules/ update/ src/ Tests/ UpdateCoreTest.php - Checks that running cron updates the list of available updates.
- UpdateCoreTest::testModulePageSecurityUpdate in core/
modules/ update/ src/ Tests/ UpdateCoreTest.php - Checks the messages at admin/modules when a security update is missing.
File
- core/
modules/ update/ src/ Tests/ UpdateCoreTest.php, line 40 - Contains \Drupal\update\Tests\UpdateCoreTest.
Class
- UpdateCoreTest
- Tests the Update Manager module through a series of functional tests using mock XML data.
Namespace
Drupal\update\TestsCode
protected function setSystemInfo($version) {
$setting = array(
'#all' => array(
'version' => $version,
),
);
$this
->config('update_test.settings')
->set('system_info', $setting)
->save();
}