X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FFunctional%2FUpdate%2FBooleanFilterValuesUpdateTest.php;fp=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FFunctional%2FUpdate%2FBooleanFilterValuesUpdateTest.php;h=a4787c447149d46127fd8a4a1c09d7101f06fe08;hp=0000000000000000000000000000000000000000;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/views/tests/src/Functional/Update/BooleanFilterValuesUpdateTest.php b/web/core/modules/views/tests/src/Functional/Update/BooleanFilterValuesUpdateTest.php new file mode 100644 index 000000000..a4787c447 --- /dev/null +++ b/web/core/modules/views/tests/src/Functional/Update/BooleanFilterValuesUpdateTest.php @@ -0,0 +1,40 @@ +databaseDumpFiles = [ + __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz', + __DIR__ . '/../../../fixtures/update/boolean-filter-values.php', + ]; + } + + /** + * Tests that boolean filter values are updated properly. + */ + public function testViewsPostUpdateBooleanFilterValues() { + $this->runUpdates(); + + // Load and initialize our test view. + $view = View::load('test_boolean_filter_values'); + $data = $view->toArray(); + // Check that the field is using the expected string value. + $this->assertIdentical('1', $data['display']['default']['display_options']['filters']['status']['value']); + } + +}