upskill-event-manager/wordpress-dev/tests/wp-tests-config-sample.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

44 lines
No EOL
1.2 KiB
PHP

<?php
/**
* WordPress tests configuration file
*/
// Test environment settings
$is_staging = getenv('HVAC_ENV') === 'staging';
// Database settings
if ($is_staging) {
define('DB_NAME', 'uberrxmprk');
define('DB_USER', 'uberrxmprk');
define('DB_PASSWORD', 'vRVr7GJCAZ');
define('DB_HOST', 'localhost');
} else {
define('DB_NAME', 'wordpress_test');
define('DB_USER', 'root');
define('DB_PASSWORD', '');
define('DB_HOST', 'localhost');
}
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
// Test suite configuration
define('ABSPATH', dirname(dirname(__DIR__)) . '/wordpress-dev/wordpress/');
define('WP_TESTS_DOMAIN', $is_staging ? 'wordpress-974670-5399585.cloudwaysapps.com' : 'localhost');
define('WP_TESTS_EMAIL', 'admin@example.com');
define('WP_TESTS_TITLE', 'Test Blog');
define('WP_PHP_BINARY', 'php');
// Test environment
define('WP_TESTS_FORCE_KNOWN_BUGS', false);
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', true);
// Prevent filesystem modifications
define('WP_TESTS_FILESYSTEM_SAFE', true);
// 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';
}