core/modules/views/tests/src/Functional/Wizard/BasicTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/views/tests/src/Functional/Wizard/BasicTest.php b/core/modules/views/tests/src/Functional/Wizard/BasicTest.php index 918ce25..d26968e 100644 --- a/core/modules/views/tests/src/Functional/Wizard/BasicTest.php +++ b/core/modules/views/tests/src/Functional/Wizard/BasicTest.php @@ -165,7 +165,7 @@ public function testViewsWizardAndListing() { // Check that the REST export path works. JSON will work, as all core // formats will be allowed. JSON and XML by default. - $this->drupalGetJSON($view4['rest_export[path]']); + $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.');