X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FFunctional%2FUpdate%2FBulkFormUpdateTest.php;fp=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FFunctional%2FUpdate%2FBulkFormUpdateTest.php;h=5db54d2c67ecee433456b7688ed7cb517be0cb8d;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/views/tests/src/Functional/Update/BulkFormUpdateTest.php b/web/core/modules/views/tests/src/Functional/Update/BulkFormUpdateTest.php new file mode 100644 index 000000000..5db54d2c6 --- /dev/null +++ b/web/core/modules/views/tests/src/Functional/Update/BulkFormUpdateTest.php @@ -0,0 +1,40 @@ +databaseDumpFiles = [ + __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz', + __DIR__ . '/../../../fixtures/update/legacy-bulk-form-update.php' + ]; + } + + /** + * Tests the updating of dependencies for Views using the bulk_form plugin. + */ + 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)); + } + +}