diff --git a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php index c0b03385e0..8078eecb02 100644 --- a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php +++ b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php @@ -224,6 +224,11 @@ public function testSerializerResponses() { * Verifies REST export views work on the same path as a page display. */ public function testSharedPagePath() { + // Test with no format as well as html explicitly. + $this->drupalGet('test/serialize/shared'); + $this->assertResponse(200); + $this->assertHeader('content-type', 'text/html; charset=UTF-8'); + $this->drupalGetWithFormat('test/serialize/shared', 'html'); $this->assertResponse(200); $this->assertHeader('content-type', 'text/html; charset=UTF-8'); @@ -231,6 +236,10 @@ public function testSharedPagePath() { $this->drupalGetWithFormat('test/serialize/shared', 'json'); $this->assertResponse(200); $this->assertHeader('content-type', 'application/json'); + + $this->drupalGetWithFormat('test/serialize/shared', 'xml'); + $this->assertResponse(200); + $this->assertHeader('content-type', 'text/xml; charset=UTF-8'); } /**