You are here

protected function UpdateCoreTest::assertVersionUpdateLinks in Drupal 8

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 UpdateCoreTest::assertVersionUpdateLinks()
UpdateCoreTest::testNormalUpdateAvailable in core/modules/update/tests/src/Functional/UpdateCoreTest.php
Tests the Update Manager module when one normal update is available.

File

core/modules/update/tests/src/Functional/UpdateCoreTest.php, line 929

Class

UpdateCoreTest
Tests the Update Manager module through a series of functional tests using mock XML data.

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);
}