diff --git a/tests/CreateTestSite.php b/tests/CreateTestSite.php index a53520e45..447e60dd5 100644 --- a/tests/CreateTestSite.php +++ b/tests/CreateTestSite.php @@ -7,6 +7,14 @@ trait CreateTestSite public function createDBFile(string $workspace) { + if (!file_exists(PATH_TRUNK . 'shared')) { + mkdir(PATH_TRUNK . 'shared'); + } + + if (!file_exists(PATH_TRUNK . 'shared/sites')) { + mkdir(PATH_TRUNK . 'shared/sites'); + } + if (!file_exists(PATH_DB . $workspace)) { mkdir(PATH_DB . $workspace); } @@ -14,20 +22,20 @@ trait CreateTestSite if (!file_exists(PATH_DB . $workspace . PATH_SEP . "db.php")) { $myfile = fopen(PATH_DB . $workspace . PATH_SEP . "db.php", "w"); $content = "" - . " +
+