Created
March 22, 2013 17:21
-
-
Save bastosmichael/5223111 to your computer and use it in GitHub Desktop.
WordPress-tests configuration
This file contains hidden or 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
/* Path to the WordPress codebase in relation to the location of these tests. Since they are included with our plugin, we refer to a few directories above. */ | |
define( 'ABSPATH', '../../../../../' ); | |
/* The name of the database for running the tests. Make sure this is a database just for testing as it's created and trashed during tests. */ | |
define( 'DB_NAME', 'throwaway' ); | |
/* The usual credentials for a local database. */ | |
define( 'DB_USER', 'root' ); | |
define( 'DB_PASSWORD', '' ); | |
define( 'DB_HOST', 'localhost' ); | |
define( 'DB_CHARSET', 'utf8' ); | |
define( 'DB_COLLATE', '' ); | |
define( 'WPLANG', '' ); | |
define( 'WP_DEBUG', true ); | |
define( 'WP_DEBUG_DISPLAY', true ); | |
define( 'WP_TESTS_DOMAIN', 'localhost' ); | |
define( 'WP_TESTS_EMAIL', '[email protected]' ); | |
define( 'WP_TESTS_TITLE', 'Test Blog' ); | |
/* Not worried about testing networks or subdomains, so setting to false. */ | |
define( 'WP_TESTS_NETWORK_TITLE', 'Test Network' ); | |
define( 'WP_TESTS_SUBDOMAIN_INSTALL', false ); | |
$base = '/'; | |
/* Cron tries to make an HTTP request to the blog, which always fails, because tests are run in CLI mode only */ | |
define( 'DISABLE_WP_CRON', true ); | |
/* Also not interested in testing multisite for this project, so setting to false. */ | |
define( 'WP_ALLOW_MULTISITE', false ); | |
if ( WP_ALLOW_MULTISITE ) { | |
define( 'WP_TESTS_BLOGS', 'first,second,third,fourth' ); | |
} | |
if ( WP_ALLOW_MULTISITE && !defined('WP_INSTALLING') ) { | |
define( 'SUBDOMAIN_INSTALL', WP_TESTS_SUBDOMAIN_INSTALL ); | |
define( 'MULTISITE', true ); | |
define( 'DOMAIN_CURRENT_SITE', WP_TESTS_DOMAIN ); | |
define( 'PATH_CURRENT_SITE', '/' ); | |
define( 'SITE_ID_CURRENT_SITE', 1); | |
define( 'BLOG_ID_CURRENT_SITE', 1); | |
} | |
$table_prefix = 'wp_'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment