function DbUpdatesTrait::applyUpdates

Same name in this branch
  1. 8.9.x core/modules/system/tests/src/Functional/Update/DbUpdatesTrait.php \Drupal\Tests\system\Functional\Update\DbUpdatesTrait::applyUpdates()

Applies any pending DB updates through the Update UI.

File

core/modules/system/src/Tests/Update/DbUpdatesTrait.php, line 41

Class

DbUpdatesTrait
Provides methods to conditionally enable db update functions and apply pending db updates through the Update UI.

Namespace

Drupal\system\Tests\Update

Code

protected function applyUpdates() {
    $this->drupalGet(Url::fromRoute('system.db_update'));
    $this->clickLink($this->t('Continue'));
    $this->clickLink($this->t('Apply pending updates'));
}

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