function ViewsConfigUpdaterTest::testUpdateAll
Same name and namespace in other branches
- 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 <a href="/api/drupal/core%21modules%21views%21src%21ViewsConfigUpdater.php/class/ViewsConfigUpdater/8.9.x" title="Provides a BC layer for modules providing old configurations." class="local">\Drupal\views\ViewsConfigUpdater</a>
Namespace
Drupal\Tests\views\KernelCode
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.