function ViewsConfigUpdaterTest::testUpdateAll

Same name in other branches
  1. 9 core/modules/views/tests/src/Kernel/ViewsConfigUpdaterTest.php \Drupal\Tests\views\Kernel\ViewsConfigUpdaterTest::testUpdateAll()

@covers ::updateAll

File

core/modules/views/tests/src/Kernel/ViewsConfigUpdaterTest.php, line 91

Class

ViewsConfigUpdaterTest
@coversDefaultClass \Drupal\views\ViewsConfigUpdater

Namespace

Drupal\Tests\views\Kernel

Code

public function testUpdateAll() {
    $view_ids = [
        'views.view.node_link_update_test',
        'views.view.test_exposed_filters',
        'views.view.test_user_multi_value',
    ];
    foreach ($view_ids as $view_id) {
        $test_view = $this->loadTestView($view_id);
        $this->assertTrue($this->configUpdater
            ->updateAll($test_view), "View {$view_id} should be updated.");
    }
    // @todo Improve this in https://www.drupal.org/node/3121008.
}

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