mirror of
git://develop.git.wordpress.org/
synced 2025-01-16 20:38:35 +01:00
8e616f05f0
This backports several build and test tool improvements to the 5.2 branch. Most notably, this includes: - The changes required to allow each workflow to be triggered by the `workflow_dispatch` event so that tests can be run on a schedule [50590]. - The ability to run PHPUnit tests from `src` instead of `build` [50441-50443]. - Splitting single site and multisite tests into parallel jobs [50379]. - Split slow tests into separate, parallel jobs for PHP 5.6 [50444]. - Better branch and path scoping for GitHub Action workflows when running on `pull_request` [50432,50479]. - Several `devDependency` updates. Merges [50267,50299,50379,50387,50413,50416,50432,50435-50436,50441-50444,50446,50473-50474,50476,50479,50485-50487,50545,50579,50590,50598] to the 5.2 branch. See #50401, #51734, #51801, #51802, #52548, #52608, #52612, #52623, #52624, #52625, #52645, #52653, #52658, #52660, #52667. git-svn-id: https://develop.svn.wordpress.org/branches/5.2@50606 602fd350-edb4-49c9-b593-d223f7449a82
65 lines
2.3 KiB
PHP
65 lines
2.3 KiB
PHP
<?php
|
|
|
|
/* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */
|
|
define( 'ABSPATH', dirname( __FILE__ ) . '/src/' );
|
|
|
|
/*
|
|
* Path to the theme to test with.
|
|
*
|
|
* The 'default' theme is symlinked from test/phpunit/data/themedir1/default into
|
|
* the themes directory of the WordPress installation defined above.
|
|
*/
|
|
define( 'WP_DEFAULT_THEME', 'default' );
|
|
|
|
// Test with multisite enabled.
|
|
// Alternatively, use the tests/phpunit/multisite.xml configuration file.
|
|
// define( 'WP_TESTS_MULTISITE', true );
|
|
|
|
// Force known bugs to be run.
|
|
// Tests with an associated Trac ticket that is still open are normally skipped.
|
|
// define( 'WP_TESTS_FORCE_KNOWN_BUGS', true );
|
|
|
|
// Test with WordPress debug mode (default).
|
|
define( 'WP_DEBUG', true );
|
|
|
|
// ** MySQL settings ** //
|
|
|
|
// This configuration file will be used by the copy of WordPress being tested.
|
|
// wordpress/wp-config.php will be ignored.
|
|
|
|
// WARNING WARNING WARNING!
|
|
// These tests will DROP ALL TABLES in the database with the prefix named below.
|
|
// DO NOT use a production database or one that is shared with something else.
|
|
|
|
define( 'DB_NAME', 'youremptytestdbnamehere' );
|
|
define( 'DB_USER', 'yourusernamehere' );
|
|
define( 'DB_PASSWORD', 'yourpasswordhere' );
|
|
define( 'DB_HOST', 'localhost' );
|
|
define( 'DB_CHARSET', 'utf8' );
|
|
define( 'DB_COLLATE', '' );
|
|
|
|
/**#@+
|
|
* Authentication Unique Keys and Salts.
|
|
*
|
|
* Change these to different unique phrases!
|
|
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
|
|
*/
|
|
define( 'AUTH_KEY', 'put your unique phrase here' );
|
|
define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
|
|
define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
|
|
define( 'NONCE_KEY', 'put your unique phrase here' );
|
|
define( 'AUTH_SALT', 'put your unique phrase here' );
|
|
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
|
|
define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
|
|
define( 'NONCE_SALT', 'put your unique phrase here' );
|
|
|
|
$table_prefix = 'wptests_'; // Only numbers, letters, and underscores please!
|
|
|
|
define( 'WP_TESTS_DOMAIN', 'example.org' );
|
|
define( 'WP_TESTS_EMAIL', 'admin@example.org' );
|
|
define( 'WP_TESTS_TITLE', 'Test Blog' );
|
|
|
|
define( 'WP_PHP_BINARY', 'php' );
|
|
|
|
define( 'WPLANG', '' );
|