Skip to content

Commit f295306

Browse files
committed
Allow WP_TESTS_DOMAIN and WP_TESTS_USE_HTTPS to be set with env variables
1 parent 8d85b26 commit f295306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mantle/testing/class-utils.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ public static function setup_configuration(): void {
237237

238238
$table_prefix = 'wptests_'; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
239239

240-
defined( 'WP_TESTS_DOMAIN' ) || define( 'WP_TESTS_DOMAIN', 'example.org' );
241-
defined( 'WP_TESTS_USE_HTTPS' ) || define( 'WP_TESTS_USE_HTTPS', false );
240+
defined( 'WP_TESTS_DOMAIN' ) || define( 'WP_TESTS_DOMAIN', static::env( 'WP_TESTS_DOMAIN', 'example.org' ) );
241+
defined( 'WP_TESTS_USE_HTTPS' ) || define( 'WP_TESTS_USE_HTTPS', static::env_bool( 'WP_TESTS_USE_HTTPS', false ) );
242242
defined( 'WP_TESTS_EMAIL' ) || define( 'WP_TESTS_EMAIL', 'admin@example.org' );
243243
defined( 'WP_TESTS_TITLE' ) || define( 'WP_TESTS_TITLE', 'Test Site' );
244244
defined( 'WP_PHP_BINARY' ) || define( 'WP_PHP_BINARY', 'php' );

0 commit comments

Comments
 (0)