You are here

protected function UpdateSemverTestBase::refreshUpdateStatus in Drupal 9

Refreshes the update status based on the desired available update scenario.

Parameters

$xml_map: Array that maps project names to availability scenarios to fetch. The key '#all' is used if a project-specific mapping is not defined.

$url: (optional) A string containing the URL to fetch update data from. Defaults to 'update-test'.

Overrides UpdateTestBase::refreshUpdateStatus

See also

\Drupal\update_test\Controller\UpdateTestController::updateTest()

9 calls to UpdateSemverTestBase::refreshUpdateStatus()
UpdateSemverCoreTest::testDatestampMismatch in core/modules/update/tests/src/Functional/UpdateSemverCoreTest.php
Ensures proper results where there are date mismatches among modules.
UpdateSemverCoreTest::testSecurityCoverageMessage in core/modules/update/tests/src/Functional/UpdateSemverCoreTest.php
Tests the security coverage messages for Drupal core versions.
UpdateSemverCoreTest::testServiceUnavailable in core/modules/update/tests/src/Functional/UpdateSemverCoreTest.php
Tests the Update Manager module when the update server returns 503 errors.
UpdateSemverTestBase::testMajorUpdateAvailable in core/modules/update/tests/src/Functional/UpdateSemverTestBase.php
Tests the Update Manager module when a major update is available.
UpdateSemverTestBase::testNormalUpdateAvailable in core/modules/update/tests/src/Functional/UpdateSemverTestBase.php
Tests the Update Manager module when one normal update is available.

... See full list

File

core/modules/update/tests/src/Functional/UpdateSemverTestBase.php, line 448

Class

UpdateSemverTestBase
Common test methods for projects that use semver version releases.

Namespace

Drupal\Tests\update\Functional

Code

protected function refreshUpdateStatus($xml_map, $url = 'update-test') {
  if (!isset($xml_map['drupal'])) {
    $xml_map['drupal'] = '0.0';
  }
  parent::refreshUpdateStatus($xml_map, $url);
}