2013-08-07 08:38:38 +02:00
|
|
|
<?php
|
|
|
|
|
2016-01-21 21:24:12 +01:00
|
|
|
/* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */
|
2019-01-09 11:13:13 +01:00
|
|
|
define( 'ABSPATH', dirname( __FILE__ ) . '/src/' );
|
2013-08-07 08:38:38 +02:00
|
|
|
|
2016-10-21 13:02:37 +02:00
|
|
|
/*
|
|
|
|
* Path to the theme to test with.
|
|
|
|
*
|
|
|
|
* The 'default' theme is symlinked from test/phpunit/data/themedir1/default into
|
2017-08-22 13:51:11 +02:00
|
|
|
* the themes directory of the WordPress installation defined above.
|
2016-10-21 13:02:37 +02:00
|
|
|
*/
|
|
|
|
define( 'WP_DEFAULT_THEME', 'default' );
|
|
|
|
|
2013-09-23 18:17:59 +02:00
|
|
|
// Test with multisite enabled.
|
|
|
|
// Alternatively, use the tests/phpunit/multisite.xml configuration file.
|
2013-08-07 08:38:38 +02:00
|
|
|
// define( 'WP_TESTS_MULTISITE', true );
|
|
|
|
|
2013-09-23 18:17:59 +02:00
|
|
|
// Force known bugs to be run.
|
|
|
|
// Tests with an associated Trac ticket that is still open are normally skipped.
|
2013-08-07 08:38:38 +02:00
|
|
|
// define( 'WP_TESTS_FORCE_KNOWN_BUGS', true );
|
|
|
|
|
2013-09-23 18:17:59 +02:00
|
|
|
// Test with WordPress debug mode (default).
|
|
|
|
define( 'WP_DEBUG', true );
|
2013-08-07 08:38:38 +02:00
|
|
|
|
|
|
|
// ** 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.
|
|
|
|
|
2013-09-04 01:59:26 +02:00
|
|
|
define( 'DB_NAME', 'youremptytestdbnamehere' );
|
2013-08-07 08:38:38 +02:00
|
|
|
define( 'DB_USER', 'yourusernamehere' );
|
|
|
|
define( 'DB_PASSWORD', 'yourpasswordhere' );
|
|
|
|
define( 'DB_HOST', 'localhost' );
|
|
|
|
define( 'DB_CHARSET', 'utf8' );
|
|
|
|
define( 'DB_COLLATE', '' );
|
|
|
|
|
2017-10-31 12:59:43 +01:00
|
|
|
/**#@+
|
|
|
|
* 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}
|
|
|
|
*/
|
2017-12-01 00:09:33 +01:00
|
|
|
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' );
|
2017-10-31 12:59:43 +01:00
|
|
|
|
2017-12-01 00:09:33 +01:00
|
|
|
$table_prefix = 'wptests_'; // Only numbers, letters, and underscores please!
|
2013-08-07 08:38:38 +02:00
|
|
|
|
|
|
|
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', '' );
|