PluginProbe
Stream – Activity Log & Audit Trail / 3.0.0
Stream – Activity Log & Audit Trail v3.0.0
4.4.0 4.3.0 4.2.2 4.2.1 trunk 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1 3.1.1 3.10.0 3.2.0 3.2.1 3.2.2 3.2.3 All 50 releases
stream / tests / bootstrap.php

bootstrap.php in Stream – Activity Log & Audit Trail 3.0.0, at tests/bootstrap.php

24 lines 559 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace WP_Stream;
3
4 // Use in code to trigger custom actions
5 define( 'WP_STREAM_TESTS', true );
6 define( 'WP_STREAM_DEV_DEBUG', true );
7
8 $_tests_dir = getenv('WP_TESTS_DIR');
9 if ( ! $_tests_dir ) {
10 $_tests_dir = '/tmp/wordpress-tests-lib/';
11 }
12 require_once $_tests_dir . '/includes/functions.php';
13
14 tests_add_filter(
15 'muplugins_loaded',
16 function() {
17 // Manually load plugin
18 require dirname( dirname( __FILE__ ) ) . '/stream.php';
19 }
20 );
21
22 require getenv( 'WP_TESTS_DIR' ) . '/includes/bootstrap.php';
23 require dirname( __FILE__ ) . '/testcase.php';
24