X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FFunctional%2FWizard%2FBasicTest.php;fp=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FFunctional%2FWizard%2FBasicTest.php;h=d26968e492a9a8460dc3f10a18ba167346176a82;hp=eb2ddbbb677ea9ab14c39cc4e7770b51c11bbcb3;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/views/tests/src/Functional/Wizard/BasicTest.php b/web/core/modules/views/tests/src/Functional/Wizard/BasicTest.php index eb2ddbbb6..d26968e49 100644 --- a/web/core/modules/views/tests/src/Functional/Wizard/BasicTest.php +++ b/web/core/modules/views/tests/src/Functional/Wizard/BasicTest.php @@ -163,8 +163,9 @@ class BasicTest extends WizardTestBase { $this->drupalPostForm('admin/structure/views/add', $view4, t('Save and edit')); $this->assertRaw(t('The view %view has been saved.', ['%view' => $view4['label']])); - // Check that the REST export path works. - $this->drupalGet($view4['rest_export[path]']); + // Check that the REST export path works. JSON will work, as all core + // formats will be allowed. JSON and XML by default. + $this->drupalGet($view4['rest_export[path]'], ['query' => ['_format' => 'json']]); $this->assertResponse(200); $data = Json::decode($this->getSession()->getPage()->getContent()); $this->assertEqual(count($data), 1, 'Only the node of type page is exported.');