Skip to content

Commit

Permalink
⏫ Forwardport of #12310 to 2.3-develop branch
Browse files Browse the repository at this point in the history
Applied pull request patch https://github.com/magento/magento2/pull/12310.patch (created by @tufahu) based on commit(s):
  1. 8fc99b1
  2. 36dfdca
  3. 5c02402
  4. 2eada9c
  5. e9986c5
  • Loading branch information
magento-engcom-team committed Jan 24, 2018
1 parent 8e77e2f commit 8d48fd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Robots/Controller/Index/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public function execute()
/** @var Page $resultPage */
$resultPage = $this->resultPageFactory->create(true);
$resultPage->addHandle('robots_index_index');
$resultPage->setHeader('Content-Type', 'text/plain');
return $resultPage;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public function testExecute()
$resultPageMock->expects($this->once())
->method('addHandle')
->with('robots_index_index');
$resultPageMock->expects($this->once())
->method('setHeader')
->with('Content-Type', 'text/plain');

$this->resultPageFactory->expects($this->any())
->method('create')
Expand Down

0 comments on commit 8d48fd3

Please sign in to comment.