PluginProbe
Mailchimp List Subscribe Form / 1.5.3
Mailchimp List Subscribe Form v1.5.3
1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 All 55 releases
mailchimp / tests / bootstrap.php

bootstrap.php in Mailchimp List Subscribe Form 1.5.3, at tests/bootstrap.php

26 lines 579 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * PHPUnit bootstrap file
4 *
5 * @package mailchimp
6 */
7
8 $_tests_dir = getenv( 'WP_TESTS_DIR' );
9 if ( ! $_tests_dir ) {
10 $_tests_dir = '/tmp/wordpress-tests-lib';
11 }
12
13 // Give access to tests_add_filter() function.
14 require_once $_tests_dir . '/includes/functions.php';
15
16 /**
17 * Manually load the plugin being tested.
18 */
19 function _manually_load_plugin() {
20 require dirname( dirname( __FILE__ ) ) . '/mailchimp.php';
21 }
22 tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
23
24 // Start up the WP testing environment.
25 require $_tests_dir . '/includes/bootstrap.php';
26