File Manager / wp-content Search Upload New Item Settings File "db5.php" Full path: /home1/epichome/public_html/wp-content/db5.php File size: 60.67 B (60.67 KB bytes) MIME-type: text/x-php Charset: utf-8 Download Open Edit Advanced Editor Back
<?php
$GLOBALS['wp_tests_options'] = array(
'active_plugins' => array( "sendpress/sendpress.php" ),
);
$_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( __FILE__ ) . '/../sendpress.php';
}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
require $_tests_dir . '/includes/bootstrap.php';
echo "Installing SendPress...\n";
// Install SendPress
SendPress::plugin_activation();
echo "Install Complete\n";
SPNL()->maybe_upgrade();
$current_version = SendPress_Option::get( 'version', '0' );
echo "SendPress Version: " . $current_version . " Installed\n";
global $current_user;
$current_user = new WP_User(1);
$current_user->set_role('administrator');
wp_update_user( array( 'ID' => 1, 'first_name' => 'Admin', 'last_name' => 'User' ) );
