From e9986c5ac7abdca30c20b416913c9458d974e5ad Mon Sep 17 00:00:00 2001
From: Ievgen Shakhsuvarov <ishakhsuvarov@magento.com>
Date: Fri, 17 Nov 2017 19:18:38 +0100
Subject: [PATCH] magento/magento2#12310: Fix robots.txt content type to
 'text/plain'

---
 .../Magento/Robots/Test/Unit/Controller/Index/IndexTest.php    | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/code/Magento/Robots/Test/Unit/Controller/Index/IndexTest.php b/app/code/Magento/Robots/Test/Unit/Controller/Index/IndexTest.php
index 22a69cc13bd..d3a7a97c7ea 100644
--- a/app/code/Magento/Robots/Test/Unit/Controller/Index/IndexTest.php
+++ b/app/code/Magento/Robots/Test/Unit/Controller/Index/IndexTest.php
@@ -51,6 +51,9 @@ class IndexTest extends \PHPUnit\Framework\TestCase
         $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')
-- 
GitLab