function BulkFormUpdateTest::testBulkFormDependencies

Tests the updating of dependencies for Views using the bulk_form plugin.

File

core/modules/views/tests/src/Functional/Update/BulkFormUpdateTest.php, line 29

Class

BulkFormUpdateTest
Tests Views image style dependencies update.

Namespace

Drupal\Tests\views\Functional\Update

Code

public function testBulkFormDependencies() {
    $module_dependencies = View::load('legacy_bulk_form')->getDependencies()['module'];
    $this->assertTrue(in_array('system', $module_dependencies));
    $this->runUpdates();
    $module_dependencies = View::load('legacy_bulk_form')->getDependencies()['module'];
    $this->assertFalse(in_array('system', $module_dependencies));
}

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