/** * Setup basics for all tests * * @return void */ public static function setUpBeforeClass() { self::$pathToSource = \Magento\Framework\App\Utility\Files::init()->getPathToSource(); self::$reportDir = self::$pathToSource . '/tests/static/report'; self::$magentoDir = (require __DIR__ . '/../../../../../etc/magento_path.php'); if (!is_dir(self::$reportDir)) { mkdir(self::$reportDir, 0777); } self::setupFileLists(); }
/** * Setup basics for all tests * * @return void */ public static function setUpBeforeClass() { self::$pathToSource = Utility\Files::init()->getPathToSource(); self::$reportDir = self::$pathToSource . '/vendor/magento/data-migration-tool/tests/static/report'; self::$magentoDir = (require __DIR__ . '/../../../../../etc/magento_path.php'); if (!is_dir(self::$reportDir)) { mkdir(self::$reportDir, 0770); } self::setupFileLists(); }