We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e02a357 commit ff0287eCopy full SHA for ff0287e
tests/TestCase.php
@@ -8,5 +8,14 @@
8
#[RequiresEnvironmentVariable('APP_BASE_PATH')]
9
abstract class TestCase extends BaseTestCase
10
{
11
- //
+ /** {@inheritdoc} */
12
+ #[\Override]
13
+ public function createApplication()
14
+ {
15
+ if (! isset($_ENV['APP_BASE_PATH']) && isset($_SERVER['APP_BASE_PATH'])) {
16
+ $_ENV['APP_BASE_PATH'] = $_SERVER['APP_BASE_PATH'];
17
+ }
18
+
19
+ return parent::createApplication();
20
21
}
0 commit comments