function UpdatePathTestBase::runUpdates

Same name and namespace in other branches
  1. 8.9.x core/modules/system/src/Tests/Update/UpdatePathTestBase.php \Drupal\system\Tests\Update\UpdatePathTestBase::runUpdates()
  2. 10 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php \Drupal\FunctionalTests\Update\UpdatePathTestBase::runUpdates()
  3. 9 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php \Drupal\FunctionalTests\Update\UpdatePathTestBase::runUpdates()
  4. 8.9.x core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php \Drupal\FunctionalTests\Update\UpdatePathTestBase::runUpdates()

Helper function to run pending database updates.

27 calls to UpdatePathTestBase::runUpdates()
BlockContentStatusInfoUpdatePathTest::testRunUpdates in core/modules/block_content/tests/src/Functional/Update/BlockContentStatusInfoUpdatePathTest.php
Tests block_content_post_update_remove_block_content_status_info_keys.
BlockItemsPerPageUpdateTest::testUpdateItemsPerPage in core/modules/views/tests/src/Functional/Update/BlockItemsPerPageUpdateTest.php
Tests changing an `items_per_page` setting of `none` to NULL.
BlockWeightUpdateTest::testRunUpdates in core/modules/block/tests/src/Functional/BlockWeightUpdateTest.php
Tests update path for blocks' `weight` property.
ChangePromotedDefaultTest::testRunUpdates in core/modules/node/tests/src/Functional/Update/ChangePromotedDefaultTest.php
Tests run updates.
ContentModerationStateIndexUpdatePathTest::testRunUpdates in core/modules/content_moderation/tests/src/Functional/Update/ContentModerationStateIndexUpdatePathTest.php
Tests the upgrade path for moderation state index.

... See full list

File

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

Class

UpdatePathTestBase
Provides a base class for writing an update test.

Namespace

Drupal\FunctionalTests\Update

Code

protected function runUpdates() {
  $this->doRunUpdates($this->updateUrl);
}

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