function UpdateSemverCoreTest::setProjectInstalledVersion

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.

... See full list

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\Functional

Code

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.