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.
1 parent 8e77e2f commit 8d48fd3Copy full SHA for 8d48fd3
app/code/Magento/Robots/Controller/Index/Index.php
@@ -43,6 +43,7 @@ public function execute()
43
/** @var Page $resultPage */
44
$resultPage = $this->resultPageFactory->create(true);
45
$resultPage->addHandle('robots_index_index');
46
+ $resultPage->setHeader('Content-Type', 'text/plain');
47
return $resultPage;
48
}
49
app/code/Magento/Robots/Test/Unit/Controller/Index/IndexTest.php
@@ -51,6 +51,9 @@ public function testExecute()
51
$resultPageMock->expects($this->once())
52
->method('addHandle')
53
->with('robots_index_index');
54
+ $resultPageMock->expects($this->once())
55
+ ->method('setHeader')
56
+ ->with('Content-Type', 'text/plain');
57
58
$this->resultPageFactory->expects($this->any())
59
->method('create')
0 commit comments