function UpdateSemverTestBaselineTrait::assertNoExtraVersion

Same name in other branches
  1. 10 core/modules/update/tests/src/Functional/UpdateSemverTestBaselineTrait.php \Drupal\Tests\update\Functional\UpdateSemverTestBaselineTrait::assertNoExtraVersion()

Asserts update table when there is no extra version.

Parameters

string $full_version: The recommended version.

Return value

void

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

File

core/modules/update/tests/src/Functional/UpdateSemverTestBaselineTrait.php, line 115

Class

UpdateSemverTestBaselineTrait
Provides test methods for semver tests shared between core and contrib.

Namespace

Drupal\Tests\update\Functional

Code

protected function assertNoExtraVersion(string $full_version) : void {
    $this->assertUpdateTableTextNotContains('Up to date');
    $this->assertUpdateTableTextContains('Update available');
    $this->assertVersionUpdateLinks('Recommended version:', $full_version);
    $this->assertUpdateTableTextNotContains('Latest version:');
    $this->assertUpdateTableElementContains('warning.svg');
}

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