PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.3.53
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.3.53
1.4.17 1.4.16 1.4.15 1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.54 1.3.53 1.3.52 1.3.51 1.3.50 1.3.49 1.3.48 All 180 releases
disco / vendor / micropackage / requirements / tests / bootstrap.php

bootstrap.php in Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO 1.3.53, at vendor/micropackage/requirements/tests/bootstrap.php

32 lines 811 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 micropackage/cache
6 */
7
8 $_tests_dir = getenv( 'WP_TESTS_DIR' );
9
10 if ( ! $_tests_dir ) {
11 $_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib';
12 }
13
14 if ( ! file_exists( $_tests_dir . '/includes/functions.php' ) ) {
15 echo "Could not find $_tests_dir/includes/functions.php, have you run bin/install-wp-tests.sh ?";
16 exit( 1 );
17 }
18
19 // Give access to tests_add_filter() function.
20 require_once $_tests_dir . '/includes/functions.php';
21
22 /**
23 * Manually load the package as mu-plugin.
24 */
25 function _manually_load_package() {
26 require dirname( dirname( __FILE__ ) ) . '/vendor/autoload.php';
27 }
28 tests_add_filter( 'muplugins_loaded', '_manually_load_package' );
29
30 // Start up the WP testing environment.
31 require $_tests_dir . '/includes/bootstrap.php';
32