Skip to content

Commit 1cc44ea

Browse files
fix robots test
1 parent 938bb1d commit 1cc44ea

File tree

1 file changed

+4
-4
lines changed
  • dev/tests/integration/testsuite/Magento/Config/Model/Config/Backend/Admin

1 file changed

+4
-4
lines changed

dev/tests/integration/testsuite/Magento/Config/Model/Config/Backend/Admin/RobotsTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
namespace Magento\Config\Model\Config\Backend\Admin;
77

8-
use Magento\Framework\App\Filesystem\DirectoryList;
8+
use Magento\Config\Model\Config\Reader\Source\Deployed\DocumentRoot;
99

1010
/**
1111
* @magentoAppArea adminhtml
@@ -33,11 +33,11 @@ protected function setUp()
3333
$this->model = $objectManager->create(\Magento\Config\Model\Config\Backend\Admin\Robots::class);
3434
$this->model->setPath('design/search_engine_robots/custom_instructions');
3535
$this->model->afterLoad();
36+
37+
$documentRootPath = $objectManager->get(DocumentRoot::class)->getPath();
3638
$this->rootDirectory = $objectManager->get(
3739
\Magento\Framework\Filesystem::class
38-
)->getDirectoryRead(
39-
DirectoryList::ROOT
40-
);
40+
)->getDirectoryRead($documentRootPath);
4141
}
4242

4343
/**

0 commit comments

Comments
 (0)