https://github.com/PressForward/pressforward
Raw File
Tip revision: 0ebba77a5a54f546b188695b852394197f89d7cc authored by Aram Zucker-Scharff on 21 June 2016, 01:25:55 UTC
Merge pull request #790 from PressForward/3.9.x-recore
Tip revision: 0ebba77
bootstrap.php
<?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 __DIR__ . '/../pressforward.php';
	require __DIR__ . '/includes/install.php';
}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );

require $_tests_dir . '/includes/bootstrap.php';
require __DIR__ . '/includes/testcase.php';
require __DIR__ . '/includes/factory.php';
back to top