Skip to content

Instantly share code, notes, and snippets.

@kilbot
Created June 14, 2015 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kilbot/e43f41868059f81f7949 to your computer and use it in GitHub Desktop.
Save kilbot/e43f41868059f81f7949 to your computer and use it in GitHub Desktop.
wp-tests-config.php
<?php
/* Path to the WordPress codebase you'd like to test. Add a backslash in the end. */
define( 'ABSPATH', '/srv/www/woopos/htdocs/' );
// 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', 'pos_tests' );
define( 'DB_USER', 'root' );
define( 'DB_PASSWORD', 'root' );
define( 'DB_HOST', 'localhost' );
define( 'DB_CHARSET', 'utf8' );
define( 'DB_COLLATE', '' );
$table_prefix = 'wptests_'; // Only numbers, letters, and underscores please!
define( 'WP_TESTS_DOMAIN', 'woopos.dev' );
define( 'WP_TESTS_EMAIL', 'support@woopos.com.au' );
define( 'WP_TESTS_TITLE', 'Test WooCommerce POS' );
define( 'WP_PHP_BINARY', 'php' );
define( 'WPLANG', '' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment