Matthias Pfefferle
9945aa7cf8
* Add leading \ before function invocation to speed up resolving. * Add leading \ before constant invocation of internal constant to speed up resolving. Constant name match is case-sensitive, except for null, false and true.
21 lines
557 B
PHP
21 lines
557 B
PHP
<?php
|
|
|
|
\error_reporting( \E_ALL & ~\E_NOTICE & ~\E_STRICT & ~\E_WARNING );
|
|
|
|
\define( 'WP_DEBUG', false );
|
|
|
|
$_tests_dir = \getenv( 'WP_TESTS_DIR' );
|
|
if ( ! $_tests_dir ) {
|
|
$_tests_dir = '/tmp/wordpress-tests-lib';
|
|
}
|
|
|
|
require_once $_tests_dir . '/includes/functions.php';
|
|
|
|
function _manually_load_plugin() {
|
|
require \dirname( \dirname( __FILE__ ) ) . '/activitypub.php';
|
|
}
|
|
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
|
|
|
|
require $_tests_dir . '/includes/bootstrap.php';
|
|
|
|
\error_reporting( \E_ALL & ~\E_NOTICE & ~\E_STRICT & ~\E_WARNING );
|