Skip to content

Commit

Permalink
Allow WP_TESTS_DOMAIN and WP_TESTS_USE_HTTPS to be set with env varia…
Browse files Browse the repository at this point in the history
…bles
  • Loading branch information
srtfisher committed Feb 3, 2025
1 parent 8d85b26 commit f295306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mantle/testing/class-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ public static function setup_configuration(): void {

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

defined( 'WP_TESTS_DOMAIN' ) || define( 'WP_TESTS_DOMAIN', 'example.org' );
defined( 'WP_TESTS_USE_HTTPS' ) || define( 'WP_TESTS_USE_HTTPS', false );
defined( 'WP_TESTS_DOMAIN' ) || define( 'WP_TESTS_DOMAIN', static::env( 'WP_TESTS_DOMAIN', 'example.org' ) );
defined( 'WP_TESTS_USE_HTTPS' ) || define( 'WP_TESTS_USE_HTTPS', static::env_bool( 'WP_TESTS_USE_HTTPS', false ) );
defined( 'WP_TESTS_EMAIL' ) || define( 'WP_TESTS_EMAIL', 'admin@example.org' );
defined( 'WP_TESTS_TITLE' ) || define( 'WP_TESTS_TITLE', 'Test Site' );
defined( 'WP_PHP_BINARY' ) || define( 'WP_PHP_BINARY', 'php' );
Expand Down

0 comments on commit f295306

Please sign in to comment.