protected function UpdateTestBase::confirmUnsupportedStatus in Drupal 8
Same name and namespace in other branches
- 9 core/modules/update/tests/src/Functional/UpdateTestBase.php \Drupal\Tests\update\Functional\UpdateTestBase::confirmUnsupportedStatus()
- 10 core/modules/update/tests/src/Functional/UpdateTestBase.php \Drupal\Tests\update\Functional\UpdateTestBase::confirmUnsupportedStatus()
Confirms messages are correct when a release has been marked unsupported.
Parameters
string $unsupported_version: The unsupported version that is currently installed.
string $newer_version: The expected newer version to recommend.
string $new_version_label: The expected label for the newer version (for example 'Recommended version:' or 'Also available:').
2 calls to UpdateTestBase::confirmUnsupportedStatus()
- UpdateContribTest::testUnsupportedRelease in core/
modules/ update/ tests/ src/ Functional/ UpdateContribTest.php - Tests messages when a project release is marked unsupported.
- UpdateCoreTest::testUnsupportedRelease in core/
modules/ update/ tests/ src/ Functional/ UpdateCoreTest.php - Tests messages when a project release is marked unsupported.
File
- core/
modules/ update/ tests/ src/ Functional/ UpdateTestBase.php, line 240
Class
- UpdateTestBase
- Defines some shared functions used by all update tests.
Namespace
Drupal\Tests\update\FunctionalCode
protected function confirmUnsupportedStatus($unsupported_version, $newer_version, $new_version_label) {
$this
->drupalGet('admin/reports/updates');
$this
->clickLink(t('Check manually'));
$this
->checkForMetaRefresh();
$this
->assertUpdateTableTextContains('Not supported!');
$this
->assertUpdateTableTextContains($unsupported_version);
$this
->assertUpdateTableElementContains('error.svg');
$this
->assertUpdateTableTextContains('Release not supported: Your currently installed release is now unsupported, and is no longer available for download. Disabling everything included in this release or upgrading is strongly recommended!');
$this
->assertVersionUpdateLinks($new_version_label, $newer_version);
}