Changeset 65385 for trunk/tests/phpunit/includes/bootstrap.php
- Timestamp:
- 11/10/2026 03:23:41 PM (38 hours ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/includes/bootstrap.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r65276 r65385 31 31 32 32 /* 33 * The Secrets API will not derive a key from the placeholder salts that34 * wp-tests-config-sample.php ships with, so give the suite a fixed test key.33 * The Secrets API needs WP_SECRETS_KEY, which wp-tests-config-sample.php does not 34 * define, so give the suite a fixed test key. 35 35 * 36 36 * Not in a process-isolated test: PHPUnit sets $GLOBALS['__PHPUNIT_BOOTSTRAP'] … … 39 39 * leave it undefined. 40 40 */ 41 if ( ! defined( 'WP_SECRETS_KEY' ) && ! isset( $GLOBALS['__PHPUNIT_BOOTSTRAP'] ) 42 && defined( 'LOGGED_IN_KEY' ) && 'put your unique phrase here' === LOGGED_IN_KEY 43 ) { 41 if ( ! defined( 'WP_SECRETS_KEY' ) && ! isset( $GLOBALS['__PHPUNIT_BOOTSTRAP'] ) ) { 44 42 define( 'WP_SECRETS_KEY', base64_encode( str_repeat( 'k', 32 ) ) ); 45 43 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)