Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
120 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
<?php | ||
|
||
$_tests_dir = getenv( 'WP_TESTS_DIR' ); | ||
require_once(dirname(__DIR__) . '/vendor/autoload.php'); | ||
|
||
if ( ! $_tests_dir ) { | ||
$_tests_dir = '/tmp/wordpress-tests-lib'; | ||
} | ||
|
||
require_once $_tests_dir . '/includes/functions.php'; | ||
|
||
require_once realpath(__DIR__ . '/../vendor/autoload.php'); | ||
|
||
require $_tests_dir . '/includes/bootstrap.php'; | ||
require(getenv('WP_PHPUNIT__DIR') . '/includes/bootstrap.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
|
||
/* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */ | ||
define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/wordpress/' ); | ||
|
||
/* | ||
* 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' , getenv( 'WP_DB_NAME' ) ?: 'silk_tests' ); | ||
define( 'DB_USER' , getenv( 'WP_DB_USER' ) ?: 'root' ); | ||
define( 'DB_PASSWORD' , getenv( 'WP_DB_PASS' ) ?: '' ); | ||
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 = 'tests_'; // 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', '' ); |