You are here

public function BulkFormUpdateTest::testBulkFormDependencies in Drupal 8

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));
}