3 namespace Drupal\Tests\views\Functional\Update;
5 use Drupal\FunctionalTests\Update\UpdatePathTestBase;
6 use Drupal\views\Entity\View;
9 * Tests Views image style dependencies update.
14 class BulkFormUpdateTest extends UpdatePathTestBase {
19 protected function setDatabaseDumpFiles() {
20 $this->databaseDumpFiles = [
21 __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
22 __DIR__ . '/../../../fixtures/update/legacy-bulk-form-update.php',
27 * Tests the updating of dependencies for Views using the bulk_form plugin.
29 public function testBulkFormDependencies() {
30 $module_dependencies = View::load('legacy_bulk_form')->getDependencies()['module'];
32 $this->assertTrue(in_array('system', $module_dependencies));
36 $module_dependencies = View::load('legacy_bulk_form')->getDependencies()['module'];
38 $this->assertFalse(in_array('system', $module_dependencies));