forked from reduxframework/redux-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap_tests.php
31 lines (28 loc) · 1.06 KB
/
bootstrap_tests.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* Bootstrap the plugin unit testing environment. Customize 'active_plugins'
* setting below to point to your main plugin file.
*
* Requires WordPress Unit Tests (http://unit-test.svn.wordpress.org/trunk/).
*
* @package wordpress-plugin-tests
*/
//Turing this crap off. it doesn't work. It's making Travis whine like a bitch.
return;
// Add this plugin to WordPress for activation so it can be tested.
$GLOBALS['wp_tests_options'] = array(
'active_plugins' => array( "ReduxFramework/redux-framework.php" ),
);
/**
* If the wordpress-tests repo location has been customized (and specified
* with WP_TESTS_DIR), use that location. This will most commonly be the case
* when configured for use with Travis CI.
*
* Otherwise, we'll just assume that this plugin is installed in the WordPress
* SVN external checkout configured in the wordpress-tests repo.
*/
if( false !== getenv( 'WP_TESTS_DIR' ) ) {
require getenv( 'WP_TESTS_DIR' ) . '/bootstrap.php';
} else {
require dirname( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) ) . '/bootstrap.php';
}