diff --git a/tests/_bootstrap.php b/tests/_bootstrap.php index c5aba71..f3a6bbc 100644 --- a/tests/_bootstrap.php +++ b/tests/_bootstrap.php @@ -15,11 +15,11 @@ $devMode = true; -// // Load dotenv? -// if (class_exists(Dotenv\Dotenv::class)) { -// // By default, this will allow .env file values to override environment variables -// // with matching names. Use `createUnsafeImmutable` to disable this. -// Dotenv\Dotenv::createUnsafeMutable(CRAFT_TESTS_PATH)->load(); -// } +// Load dotenv? +if (class_exists(Dotenv\Dotenv::class)) { + // By default, this will allow .env file values to override environment variables + // with matching names. Use `createUnsafeImmutable` to disable this. + Dotenv\Dotenv::createUnsafeMutable(CRAFT_TESTS_PATH)->load(); +} TestSetup::configureCraft();