You are here

public function UpdaterFormTest::testMinorVersionUpdateNotSupported in Automatic Updates 8.2

Tests that updating to a different minor version isn't supported.

@dataProvider providerUpdateFormReferringUrl

Parameters

string $update_form_url: The URL of the update form to visit.

File

tests/src/Functional/UpdaterFormTest.php, line 225

Class

UpdaterFormTest
@covers \Drupal\automatic_updates\Form\UpdaterForm

Namespace

Drupal\Tests\automatic_updates\Functional

Code

public function testMinorVersionUpdateNotSupported(string $update_form_url) : void {
  $this
    ->setCoreVersion('9.7.1');
  $this
    ->drupalGet($update_form_url);
  $assert_session = $this
    ->assertSession();
  $assert_session
    ->pageTextContainsOnce('Updating from one minor version to another is not supported.');
  $assert_session
    ->buttonNotExists('Update');
}