function UpdateSemverTestBase::setProjectInstalledVersion

Same name in other branches
  1. 10 core/modules/update/tests/src/Functional/UpdateSemverTestBase.php \Drupal\Tests\update\Functional\UpdateSemverTestBase::setProjectInstalledVersion()
  2. 11.x core/modules/update/tests/src/Functional/UpdateSemverTestBase.php \Drupal\Tests\update\Functional\UpdateSemverTestBase::setProjectInstalledVersion()

Sets the project installed version.

Parameters

string $version: The version number.

6 calls to UpdateSemverTestBase::setProjectInstalledVersion()
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.
UpdateSemverTestBase::testNoUpdatesAvailable in core/modules/update/tests/src/Functional/UpdateSemverTestBase.php
Tests the Update Manager module when no updates are available.
UpdateSemverTestBase::testRevokedRelease in core/modules/update/tests/src/Functional/UpdateSemverTestBase.php
Tests messages when a project release is unpublished.
UpdateSemverTestBase::testSecurityUpdateAvailability in core/modules/update/tests/src/Functional/UpdateSemverTestBase.php
Tests the Update Manager module when a security update is available.

... See full list

2 methods override UpdateSemverTestBase::setProjectInstalledVersion()
UpdateSemverContribTest::setProjectInstalledVersion in core/modules/update/tests/src/Functional/UpdateSemverContribTest.php
Sets the project installed version.
UpdateSemverCoreTest::setProjectInstalledVersion in core/modules/update/tests/src/Functional/UpdateSemverCoreTest.php
Sets the version to x.x.x when no project-specific mapping is defined.

File

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

Class

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

Namespace

Drupal\Tests\update\Functional

Code

protected abstract function setProjectInstalledVersion($version);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.