Source of file app.php
Size: 0,516 Bytes - Last Modified: 2021-12-23T10:28:18+00:00
/var/www/docs.ssmods.com/process/src/tests/bootstrap/app.php
12345678910111213141516 | <?php // Mock app if not installed with silverstripe/installer if (defined('BASE_PATH')) { $projectPath = BASE_PATH . '/app'; } else { $projectPath = getcwd() . '/app'; } if (!is_dir($projectPath)) { mkdir($projectPath, 02775); mkdir($projectPath . '/code', 02775); mkdir($projectPath . '/_config', 02775); copy(__DIR__ . '/fixtures/Page.php.fixture', $projectPath . '/code/Page.php'); copy(__DIR__ . '/fixtures/PageController.php.fixture', $projectPath . '/code/PageController.php'); } |