X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FFunctional%2FUpdate%2FEntityLinkOutputUrlUpdateTest.php;fp=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FFunctional%2FUpdate%2FEntityLinkOutputUrlUpdateTest.php;h=11c9b758ce2d4ec6eceef7c3eca68e49658cdf54;hp=0000000000000000000000000000000000000000;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/views/tests/src/Functional/Update/EntityLinkOutputUrlUpdateTest.php b/web/core/modules/views/tests/src/Functional/Update/EntityLinkOutputUrlUpdateTest.php new file mode 100644 index 000000000..11c9b758c --- /dev/null +++ b/web/core/modules/views/tests/src/Functional/Update/EntityLinkOutputUrlUpdateTest.php @@ -0,0 +1,41 @@ +databaseDumpFiles = [ + __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz', + __DIR__ . '/../../../fixtures/update/entity-link-output-url.php', + ]; + } + + /** + * Tests that the additional settings are added to the config. + */ + public function testViewsPostUpdateEntityLinkUrl() { + $this->runUpdates(); + + // Load and initialize our test view. + $view = View::load('node_link_update_test'); + $data = $view->toArray(); + // Check that the field contains the new values. + $this->assertIdentical(FALSE, $data['display']['default']['display_options']['fields']['view_node']['output_url_as_text']); + $this->assertIdentical(FALSE, $data['display']['default']['display_options']['fields']['view_node']['absolute']); + } + +}