You are here

protected function UpdatePathTestBase::runUpdates in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php \Drupal\FunctionalTests\Update\UpdatePathTestBase::runUpdates()
  2. 8 core/modules/system/src/Tests/Update/UpdatePathTestBase.php \Drupal\system\Tests\Update\UpdatePathTestBase::runUpdates()
Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php \Drupal\FunctionalTests\Update\UpdatePathTestBase::runUpdates()

Helper function to run pending database updates.

164 calls to UpdatePathTestBase::runUpdates()
ActionConfigTest::testUpdateActionPlugins in core/modules/action/tests/src/Functional/Update/ActionConfigTest.php
Tests upgrading action settings.
AdminThemeUpdateTest::testUpdateHookN in core/modules/system/tests/src/Functional/Update/AdminThemeUpdateTest.php
Tests that system.theme:admin is updated as expected.
AggregatorUpdateTest::testSourceFeedRequired in core/modules/aggregator/tests/src/Functional/Update/AggregatorUpdateTest.php
Tests that the 'Source feed' field is required.
AggregatorUpdateTest::testUpdateIntervalDefaultValue in core/modules/aggregator/tests/src/Functional/Update/AggregatorUpdateTest.php
Tests that the 'Update interval' field has a default value.
ArgumentPlaceholderUpdatePathTest::testArgumentPlaceholderUpdate in core/modules/views/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php
Ensures that %1 and !1 are converted to twig tokens in existing views.

... See full list

File

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

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);
}