upskill-event-manager/wordpress-dev/tests/wp-tests-config.php
bengizmo d6211ee364 feat(testing): Implement HVAC_Test_User_Factory and update .gitignore
- Add HVAC_Test_User_Factory class with:
  * User creation with specific roles
  * Multiple role support
  * Persona management system
  * Account cleanup integration
- Create comprehensive test suite in HVAC_Test_User_Factory_Test.php
- Update testing improvement plan documentation
- Add implementation decisions to project memory bank
- Restructure .gitignore with:
  * Whitelist approach for better file management
  * Explicit backup exclusions
  * Specific bin directory inclusions

Part of the Account Management component from the testing framework improvement plan.
2025-04-14 17:41:36 -03:00

39 lines
No EOL
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', 'root');
define('DB_PASSWORD', 'root');
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';
}