You are here

protected function UpdateSemverTestBase::assertVersionUpdateLinks in Drupal 9

Asserts that an update version has the correct links.

Parameters

string $label: The label for the update.

string $version: The project version.

string|null $download_version: (optional) The version number as it appears in the download link. If $download_version is not provided then $version will be used.

Overrides UpdateTestBase::assertVersionUpdateLinks

1 call to UpdateSemverTestBase::assertVersionUpdateLinks()
UpdateSemverTestBase::testNormalUpdateAvailable in core/modules/update/tests/src/Functional/UpdateSemverTestBase.php
Tests the Update Manager module when one normal update is available.

File

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

Class

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

Namespace

Drupal\Tests\update\Functional

Code

protected function assertVersionUpdateLinks($label, $version, $download_version = NULL) {

  // Test XML files for Drupal core use '-' in the version number for the
  // download link.
  $download_version = str_replace('.', '-', $version);
  parent::assertVersionUpdateLinks($label, $version, $download_version);
}