forked from reduxframework/redux-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap_tests.php
executable file
·28 lines (23 loc) · 1003 Bytes
/
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
<?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
*/
// 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' ) . '/includes/bootstrap.php';
} else {
require dirname( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) ) . '/includes/bootstrap.php';
}