Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.

Commit 8610eda

Browse files
committed
Restore SUPPORTPATH, add MODULESUPPORTPATH
1 parent 82346fa commit 8610eda

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/tests/_support/bootstrap.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
define('FCPATH', realpath(ROOTPATH . 'public') . DIRECTORY_SEPARATOR);
2020
define('SYSTEMPATH', realpath($paths->systemDirectory) . DIRECTORY_SEPARATOR);
2121
define('WRITEPATH', realpath($paths->writableDirectory) . DIRECTORY_SEPARATOR);
22+
define('SUPPORTPATH', realpath(ROOTPATH . 'tests/_support') . DIRECTORY_SEPARATOR);
2223

2324
// Define necessary module test path constants
24-
define('SUPPORTPATH', realpath(__DIR__) . DIRECTORY_SEPARATOR);
25-
define('TESTPATH', realpath(SUPPORTPATH . '../') . DIRECTORY_SEPARATOR);
26-
define('MODULEPATH', realpath(__DIR__ . '/../../') . DIRECTORY_SEPARATOR);
27-
define('COMPOSER_PATH', MODULEPATH . 'vendor/autoload.php');
25+
define('MODULESUPPORTPATH', realpath(__DIR__) . DIRECTORY_SEPARATOR);
26+
define('TESTPATH', realpath(MODULESUPPORTPATH . '../') . DIRECTORY_SEPARATOR);
27+
define('MODULEPATH', realpath(__DIR__ . '/../../') . DIRECTORY_SEPARATOR);
28+
define('COMPOSER_PATH', MODULEPATH . 'vendor/autoload.php');
2829

2930
// Set environment values that would otherwise stop the framework from functioning during tests.
3031
if (! isset($_SERVER['app.baseURL']))

0 commit comments

Comments
 (0)