We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2bab207 + 8c87e85 commit a7042c1Copy full SHA for a7042c1
dev/tests/integration/testsuite/Magento/Cms/Controller/PageTest.php
@@ -17,6 +17,16 @@ public function testViewAction()
17
$this->assertContains('What are Cookies?', $this->getResponse()->getBody());
18
}
19
20
+ public function testViewRedirectWithTrailingSlash()
21
+ {
22
+ $this->dispatch('/enable-cookies/');
23
+ $code = $this->getResponse()->getStatusCode();
24
+ $location = $this->getResponse()->getHeader('Location')->getFieldValue();
25
+
26
+ $this->assertEquals(301, $code, 'Invalid response code');
27
+ $this->assertStringEndsWith('/enable-cookies', $location, 'Invalid location header');
28
+ }
29
30
/**
31
* Test \Magento\Cms\Block\Page::_addBreadcrumbs
32
*/
0 commit comments