Basic release

This commit is contained in:
2023-12-30 14:28:21 +01:00
parent 4869f1ef2f
commit bf2892ab29
125 changed files with 10729 additions and 0 deletions

View File

@ -0,0 +1,33 @@
<?php
/**
* PHPUnit bootstrap file
*
* Variant of the one from github.com/tierra/wordpress-plugins-tests
*/
require_once __DIR__ . '/../use/shy-wordpress/src/autoloader.php';
require_once __DIR__ . '/../src/autoloader.php';
require_once __DIR__ . '/autoloader.php';
$GLOBALS['wp_test_plugins'] = array(
'active_plugins' => array( 'pfadfinden-theme-updater/pfadfinden-theme-updater.php' ),
);
echo 'Setting up WordPress...' . PHP_EOL;
if ( ! isset( $argv )
|| ( ! in_array( '-v', $argv ) && ! in_array( '--verbose', $argv ) )
) {
ob_start();
}
require_once ( getenv( 'WP_DEVELOP_DIR' ) ?: '../../../..' )
. '/tests/phpunit/includes/bootstrap.php';
if ( ob_get_level() ) {
ob_end_clean();
}