diff --git a/core/modules/system/src/Tests/System/ResponseGeneratorTest.php b/core/modules/system/src/Tests/System/ResponseGeneratorTest.php index 061f7f9..8684624 100644 --- a/core/modules/system/src/Tests/System/ResponseGeneratorTest.php +++ b/core/modules/system/src/Tests/System/ResponseGeneratorTest.php @@ -62,7 +62,7 @@ function testGeneratorHeaderAdded() { $this->enableService('entity:node', 'GET', 'json'); // Tests to see if this also works for a non-html request - $this->httpRequest($node->urlInfo(), 'GET', NULL, 'application/json'); + $this->httpRequest($node->urlInfo()->setOption('query', ['_format' => 'json']), 'GET'); $this->assertResponse(200); $this->assertEqual('application/json', $this->drupalGetHeader('Content-Type')); $this->assertEqual($expectedGeneratorHeader, $this->drupalGetHeader('X-Generator'));