39 lines
No EOL
1.1 KiB
PHP
39 lines
No EOL
1.1 KiB
PHP
<?php
|
|
/**
|
|
* WordPress tests configuration file
|
|
*/
|
|
|
|
// Test environment settings
|
|
define('WP_TESTS_DOMAIN', 'localhost');
|
|
define('WP_TESTS_EMAIL', 'admin@example.com');
|
|
define('WP_TESTS_TITLE', 'Test Blog');
|
|
define('WP_PHP_BINARY', 'php');
|
|
|
|
// Database settings
|
|
define('DB_NAME', 'wordpress_test');
|
|
define('DB_USER', 'uberrxmprk');
|
|
define('DB_PASSWORD', 'uberrxmprk');
|
|
define('DB_HOST', 'localhost');
|
|
define('DB_CHARSET', 'utf8');
|
|
define('DB_COLLATE', '');
|
|
|
|
// WordPress core location
|
|
define('ABSPATH', dirname(__FILE__) . '/../wordpress/');
|
|
define('WP_CONTENT_DIR', ABSPATH . 'wp-content');
|
|
|
|
// Test environment
|
|
define('WP_DEBUG', true);
|
|
define('WP_DEBUG_LOG', true);
|
|
define('WP_DEBUG_DISPLAY', true);
|
|
|
|
// Prevent filesystem modifications
|
|
define('WP_TESTS_FILESYSTEM_SAFE', true);
|
|
|
|
// Required for WordPress tests
|
|
define('WP_TESTS_FORCE_KNOWN_BUGS', false);
|
|
define('WP_TESTS_CONFIG_FILE_PATH', __FILE__);
|
|
|
|
// Load custom test configuration if it exists
|
|
if (file_exists(dirname(__FILE__) . '/wp-tests-config-local.php')) {
|
|
require dirname(__FILE__) . '/wp-tests-config-local.php';
|
|
} |