| Current Path : /home/rtorresani/www/dev/tests/integration/testsuite/Magento/Config/Model/_files/ |
| Current File : //home/rtorresani/www/dev/tests/integration/testsuite/Magento/Config/Model/_files/no_robots_txt.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\App\Filesystem\DirectoryList;
/** @var \Magento\Framework\Filesystem\Directory\Write $rootDirectory */
$rootDirectory = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
\Magento\Framework\Filesystem::class
)->getDirectoryWrite(
DirectoryList::PUB
);
if ($rootDirectory->isExist('robots.txt')) {
$rootDirectory->delete('robots.txt');
}