<?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');
}
