| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | /* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */ |
|---|
| 4 | define( 'ABSPATH', dirname( __FILE__ ) . '/src/' ); |
|---|
| 5 | |
|---|
| 6 | /* |
|---|
| 7 | * Path to the theme to test with. |
|---|
| 8 | * |
|---|
| 9 | * The 'default' theme is symlinked from test/phpunit/data/themedir1/default into |
|---|
| 10 | * the themes directory of the WordPress installation defined above. |
|---|
| 11 | */ |
|---|
| 12 | define( 'WP_DEFAULT_THEME', 'default' ); |
|---|
| 13 | |
|---|
| 14 | /* |
|---|
| 15 | * Test with multisite enabled. |
|---|
| 16 | * Alternatively, use the tests/phpunit/multisite.xml configuration file. |
|---|
| 17 | */ |
|---|
| 18 | // define( 'WP_TESTS_MULTISITE', true ); |
|---|
| 19 | |
|---|
| 20 | /* |
|---|
| 21 | * Force known bugs to be run. |
|---|
| 22 | * Tests with an associated Trac ticket that is still open are normally skipped. |
|---|
| 23 | */ |
|---|
| 24 | // define( 'WP_TESTS_FORCE_KNOWN_BUGS', true ); |
|---|
| 25 | |
|---|
| 26 | // Test with WordPress debug mode (default). |
|---|
| 27 | define( 'WP_DEBUG', true ); |
|---|
| 28 | |
|---|
| 29 | // ** Database settings ** // |
|---|
| 30 | |
|---|
| 31 | /* |
|---|
| 32 | * This configuration file will be used by the copy of WordPress being tested. |
|---|
| 33 | * wordpress/wp-config.php will be ignored. |
|---|
| 34 | * |
|---|
| 35 | * WARNING WARNING WARNING! |
|---|
| 36 | * These tests will DROP ALL TABLES in the database with the prefix named below. |
|---|
| 37 | * DO NOT use a production database or one that is shared with something else. |
|---|
| 38 | */ |
|---|
| 39 | |
|---|
| 40 | define( 'DB_NAME', 'youremptytestdbnamehere' ); |
|---|
| 41 | define( 'DB_USER', 'yourusernamehere' ); |
|---|
| 42 | define( 'DB_PASSWORD', 'yourpasswordhere' ); |
|---|
| 43 | define( 'DB_HOST', 'localhost' ); |
|---|
| 44 | define( 'DB_CHARSET', 'utf8mb4' ); |
|---|
| 45 | define( 'DB_COLLATE', '' ); |
|---|
| 46 | |
|---|
| 47 | /**#@+ |
|---|
| 48 | * Authentication Unique Keys and Salts. |
|---|
| 49 | * |
|---|
| 50 | * Change these to different unique phrases! |
|---|
| 51 | * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} |
|---|
| 52 | */ |
|---|
| 53 | define( 'AUTH_KEY', 'put your unique phrase here' ); |
|---|
| 54 | define( 'SECURE_AUTH_KEY', 'put your unique phrase here' ); |
|---|
| 55 | define( 'LOGGED_IN_KEY', 'put your unique phrase here' ); |
|---|
| 56 | define( 'NONCE_KEY', 'put your unique phrase here' ); |
|---|
| 57 | define( 'AUTH_SALT', 'put your unique phrase here' ); |
|---|
| 58 | define( 'SECURE_AUTH_SALT', 'put your unique phrase here' ); |
|---|
| 59 | define( 'LOGGED_IN_SALT', 'put your unique phrase here' ); |
|---|
| 60 | define( 'NONCE_SALT', 'put your unique phrase here' ); |
|---|
| 61 | |
|---|
| 62 | $table_prefix = 'wptests_'; // Only numbers, letters, and underscores please! |
|---|
| 63 | |
|---|
| 64 | define( 'WP_TESTS_DOMAIN', 'example.org' ); |
|---|
| 65 | define( 'WP_TESTS_EMAIL', 'admin@example.org' ); |
|---|
| 66 | define( 'WP_TESTS_TITLE', 'Test Blog' ); |
|---|
| 67 | |
|---|
| 68 | define( 'WP_PHP_BINARY', 'php' ); |
|---|
| 69 | |
|---|
| 70 | define( 'WPLANG', '' ); |
|---|