You are here

protected function UpdatePathTestBase::runUpdates in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php \Drupal\FunctionalTests\Update\UpdatePathTestBase::runUpdates()
  2. 10 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php \Drupal\FunctionalTests\Update\UpdatePathTestBase::runUpdates()

Helper function to run pending database updates.

35 calls to UpdatePathTestBase::runUpdates()
ActionConfigTest::testUpdateActionPlugins in core/modules/action/tests/src/Functional/Update/ActionConfigTest.php
Tests upgrading action settings.
AdvisoriesUpdatePathTest::testUpdatePath in core/modules/system/tests/src/Functional/SecurityAdvisories/AdvisoriesUpdatePathTest.php
Tests advisories settings update path.
BlockNodeTypeVisibilityUpdateTest::testBlock in core/modules/block/tests/src/Functional/Update/BlockNodeTypeVisibilityUpdateTest.php
Tests that block context mapping is updated properly.
ClassyUninstallUpdateTest::testUpdate in core/modules/system/tests/src/Functional/Update/ClassyUninstallUpdateTest.php
Ensures that Classy is disabled if it's no longer needed.
ClassyUninstallUpdateTest::testUpdateClassyNeeded in core/modules/system/tests/src/Functional/Update/ClassyUninstallUpdateTest.php
Ensures that updates run without errors when Classy is still needed.

... See full list

File

core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php, line 265

Class

UpdatePathTestBase
Provides a base class for writing an update test.

Namespace

Drupal\FunctionalTests\Update

Code

protected function runUpdates() {
  if (!$this->zlibInstalled) {
    $this
      ->fail('Missing zlib requirement for update tests.');
    return FALSE;
  }
  $this
    ->doRunUpdates($this->updateUrl);
}