# stream/2.0.2/tests/bootstrap.php

Stream – Activity Log &amp; Audit Trail, version 2.0.2. 29 lines.

- Page: https://pluginprobe.com/plugins/stream/2.0.2/code/tests/bootstrap.php
- Raw: https://pluginprobe.com/plugins/stream/2.0.2/raw/tests/bootstrap.php
- Modified: 2015-01-15T03:04:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/stream/2.0.2/code/tests/bootstrap.php#L10-L20`.

```php
<?php
/**
 * Tests bootstrapper
 *
 * @author X-Team <x-team.com>
 * @author Jonathan Bardo <jonathan.bardo@x-team.com>
 */

// Use in code to trigger custom actions
define( 'STREAM_TESTS', true );
define( 'WP_STREAM_DEV_DEBUG', true );

$_tests_dir = getenv('WP_TESTS_DIR');
if ( ! $_tests_dir ) {
	$_tests_dir = '/tmp/wordpress-tests-lib/';
}
require_once $_tests_dir . 'includes/functions.php';

tests_add_filter(
	'muplugins_loaded',
	function() {
		// Manually load plugin
		require dirname( dirname( __FILE__ ) ) . '/stream.php';
	}
);

require getenv( 'WP_TESTS_DIR' ) . 'includes/bootstrap.php';
require dirname( __FILE__ ) . '/testcase.php';

```
