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.
13 class BulkFormUpdateTest extends UpdatePathTestBase {
18 protected function setDatabaseDumpFiles() {
19 $this->databaseDumpFiles = [
20 __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
21 __DIR__ . '/../../../fixtures/update/legacy-bulk-form-update.php'
26 * Tests the updating of dependencies for Views using the bulk_form plugin.
28 public function testBulkFormDependencies() {
29 $module_dependencies = View::load('legacy_bulk_form')->getDependencies()['module'];
31 $this->assertTrue(in_array('system', $module_dependencies));
35 $module_dependencies = View::load('legacy_bulk_form')->getDependencies()['module'];
37 $this->assertFalse(in_array('system', $module_dependencies));