upskill-event-manager/wordpress-dev/tests/basic/bootstrap.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

28 lines
722 B
PHP

<?php
/**
* Bootstrap file for basic test suite
*/
// Define test environment constants
define('HVAC_TEST_DIR', __DIR__);
define('HVAC_PLUGIN_DIR', dirname(dirname(__DIR__)));
define('HVAC_DEBUG', true);
// Load test doubles first
require_once __DIR__ . '/test-doubles.php';
// Load WordPress test environment
require_once dirname(dirname(dirname(__DIR__))) . '/wp-tests-config.php';
// Load our plugin
require_once HVAC_PLUGIN_DIR . '/hvac-community-events.php';
// Initialize test environment
if (defined('HVAC_DEBUG') && HVAC_DEBUG) {
error_log('[HVAC TEST] Bootstrap complete');
}
// Verify WordPress loaded
if (!function_exists('add_filter')) {
throw new Exception('WordPress not loaded properly');
}