|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/nandedex/public_html/wp-content/plugins/better-amp/tests/ |
<?php
$_tests_dir = getenv( 'WP_TESTS_DIR' );
if ( ! $_tests_dir ) {
$_tests_dir = realpath('../../../../../wordpress-tests-lib');
}
// Give access to tests_add_filter() function.
require_once $_tests_dir . '/includes/functions.php';
function _plugin_file() {
$dir = dirname( __DIR__ );
return $dir . '/' . basename( $dir ) . '.php';
}
/**
* Manually load the plugin being tested.
*/
function _manually_load_plugin() {
require _plugin_file();
}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
// Start up the WP testing environment.
require $_tests_dir . '/includes/bootstrap.php';
require __DIR__ . '/class-amp-testcase.php';