2018-09-24 20:53:23 +02:00
|
|
|
<?php
|
|
|
|
|
2020-05-12 19:42:09 +02:00
|
|
|
\error_reporting( \E_ALL & ~\E_NOTICE & ~\E_STRICT & ~\E_WARNING );
|
2018-09-24 20:53:23 +02:00
|
|
|
|
2019-12-01 21:20:26 +01:00
|
|
|
\define( 'WP_DEBUG', false );
|
2018-09-24 20:53:23 +02:00
|
|
|
|
2019-12-01 21:20:26 +01:00
|
|
|
$_tests_dir = \getenv( 'WP_TESTS_DIR' );
|
2018-09-24 20:53:23 +02:00
|
|
|
if ( ! $_tests_dir ) {
|
|
|
|
$_tests_dir = '/tmp/wordpress-tests-lib';
|
|
|
|
}
|
|
|
|
|
|
|
|
require_once $_tests_dir . '/includes/functions.php';
|
|
|
|
|
|
|
|
function _manually_load_plugin() {
|
2019-12-01 21:20:26 +01:00
|
|
|
require \dirname( \dirname( __FILE__ ) ) . '/activitypub.php';
|
2018-09-24 20:53:23 +02:00
|
|
|
}
|
2020-05-12 20:30:06 +02:00
|
|
|
\tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
|
2018-09-24 20:53:23 +02:00
|
|
|
|
|
|
|
require $_tests_dir . '/includes/bootstrap.php';
|
|
|
|
|
2020-05-12 19:42:09 +02:00
|
|
|
\error_reporting( \E_ALL & ~\E_NOTICE & ~\E_STRICT & ~\E_WARNING );
|