PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 5.1.1
Hustle – Email Marketing, Lead Generation, Optins, Popups v5.1.1
7.8.13 7.8.13.1 trunk 3.0 3.1 3.1.1 3.1.2 3.1.3 3.1.4 4.3.2 4.4.4 4.4.5 4.4.5.1 4.4.5.4 4.6 4.6.1.1 4.6.1.4 4.7.0.2 4.7.0.3 4.7.0.7 4.7.0.9 4.7.1.0 4.7.1.1 4.8.0.0 5.0.0 5.0.1 5.0.1.1 5.0.1.2 5.1 5.1.1 5.1.2 5.1.3 5.1.3.1 5.1.3.2 5.1.4 5.1.5 6.0 6.0.1 6.0.2 6.0.3 6.0.4.2 6.0.5 6.0.6.1 6.0.7 6.0.8.1 6.0.9 7.0.0.1 7.0.2 7.0.3 7.0.4 7.1.0 7.1.1 7.2.0 7.2.1 7.3.0 7.3.1 7.3.3 7.3.5 7.3.6 7.3.7 7.4.0 7.4.1 7.4.11 7.4.13 7.4.13.1 7.4.2 7.4.3 7.4.4 7.4.5 7.4.5.1 7.4.5.2 7.4.6 7.4.7 7.5.0 7.6.0 7.6.1 7.6.3 7.6.4 7.6.6 7.7.0 7.7.1 7.8.0 7.8.1 7.8.10 7.8.10.1 7.8.10.2 7.8.11 7.8.12 7.8.12.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 7.8.8 7.8.9 7.8.9.1 7.8.9.2 7.8.9.3
wordpress-popup / lib / wpmu-lib / tests / php / bootstrap.php
wordpress-popup / lib / wpmu-lib / tests / php Last commit date
bootstrap.php 9 years ago phpunit.xml 9 years ago
bootstrap.php
50 lines
1 <?php
2
3 ob_start();
4
5 /**
6 * Set up environment for my plugin's tests suite.
7 */
8
9 /**
10 * The path to the WordPress tests checkout.
11 */
12 define( 'WP_TESTS_DIR', '/srv/www/wordpress-develop/trunk/tests/phpunit/' );
13
14 /**
15 * The path to the main file of the plugin to test.
16 */
17 define( 'TEST_PLUGIN_FILE', 'core.php' );
18
19 /**
20 * The WordPress tests functions.
21 *
22 * We are loading this so that we can add our tests filter
23 * to load the plugin, using tests_add_filter().
24 */
25 require_once WP_TESTS_DIR . 'includes/functions.php';
26
27 /**
28 * Manually load the plugin main file.
29 *
30 * The plugin won't be activated within the test WP environment,
31 * that's why we need to load it manually.
32 *
33 * You will also need to perform any installation necessary after
34 * loading your plugin, since it won't be installed.
35 */
36 function _manually_load_plugin() {
37
38 require TEST_PLUGIN_FILE;
39
40 // Make sure plugin is installed here ...
41 }
42 tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
43
44 /**
45 * Sets up the WordPress test environment.
46 *
47 * We've got our action set up, so we can load this now,
48 * and viola, the tests begin.
49 */
50 require WP_TESTS_DIR . 'includes/bootstrap.php';