<?php
/**
 * PHPUnit bootstrap scaffold for nexdirectory Events.
 *
 * This file expects WordPress core test bootstrap from WP_TESTS_DIR.
 */

if (!defined('ABSPATH')) {
    $tests_dir = getenv('WP_TESTS_DIR');
    if (!$tests_dir) {
        $tests_dir = '/tmp/wordpress-tests-lib';
    }
    require_once rtrim($tests_dir, '/\\') . '/includes/functions.php';
}

tests_add_filter('muplugins_loaded', static function () {
    require dirname(__DIR__, 2) . '/nexdirectory.php';
});

$wp_tests_dir = getenv('WP_TESTS_DIR');
if (!$wp_tests_dir) {
    $wp_tests_dir = '/tmp/wordpress-tests-lib';
}
require rtrim($wp_tests_dir, '/\\') . '/includes/bootstrap.php';
