We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ff25df commit 13a44ebCopy full SHA for 13a44eb
Tests/Integration/Controller/SessionControllerTest.php
@@ -51,6 +51,18 @@ public function controllerIsAvailableViaContainer()
51
self::assertInstanceOf(SessionController::class, $this->client->getContainer()->get(SessionController::class));
52
}
53
54
+ /**
55
+ * @test
56
+ */
57
+ public function rootUrlHasHtmlContentType()
58
+ {
59
+ $this->client->request('get', '/');
60
+
61
+ $response = $this->client->getResponse();
62
63
+ self::assertContains('text/html', (string)$response->headers);
64
+ }
65
66
/**
67
* @test
68
*/
composer.json
@@ -103,7 +103,12 @@
103
"enabled": true,
104
"rules": [
105
{
106
+ "path": "^/api/v2/",
107
"fallback_format": "json"
108
+ },
109
110
+ "path": "^/",
111
+ "fallback_format": "html"
112
113
]
114
},
0 commit comments