public function ViewsDataTableDependencyUpdateTest::testPostUpdate in Drupal 8
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());
}