| 1 |
<?php |
| 2 |
|
| 3 |
require_once dirname(__DIR__) . '/vendor/autoload.php'; |
| 4 |
|
| 5 |
$_tests_dir = getenv('WP_TESTS_DIR') ?: getenv('WP_PHPUNIT__DIR'); |
| 6 |
|
| 7 |
require_once $_tests_dir . '/includes/functions.php'; |
| 8 |
|
| 9 |
tests_add_filter('muplugins_loaded', function () { |
| 10 |
require_once dirname(__DIR__) . '/vendor/autoload.php'; |
| 11 |
}); |
| 12 |
|
| 13 |
require $_tests_dir . '/includes/bootstrap.php'; |
| 14 |
|