function ViewsDataTableDependencyUpdateTest::testPostUpdate
Tests that dependencies are correct after update.
File
-
core/
modules/ views/ tests/ src/ Functional/ Update/ ViewsDataTableDependencyUpdateTest.php, line 33
Class
- ViewsDataTableDependencyUpdateTest
- Tests the upgrade path for views data table provider dependencies.
Namespace
Drupal\Tests\views\Functional\UpdateCode
public function testPostUpdate() {
$this->runUpdates();
// Load and initialize our test view.
$view = Views::getView('test_table_dependency_update');
$this->assertEquals([
'module' => [
'views_test_data',
],
], $view->getDependencies());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.