# edit-flow/0.9/tests/bootstrap.php

Edit Flow, version 0.9. 29 lines.

- Page: https://pluginprobe.com/plugins/edit-flow/0.9/code/tests/bootstrap.php
- Raw: https://pluginprobe.com/plugins/edit-flow/0.9/raw/tests/bootstrap.php
- Modified: 2019-01-11T04:24:28+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/edit-flow/0.9/code/tests/bootstrap.php#L10-L20`.

```php
<?php
/**
 * PHPUnit bootstrap file
 *
 * @package Edit_Flow
 */

$_tests_dir = getenv( 'WP_TESTS_DIR' );
if ( ! $_tests_dir ) {
	$_tests_dir = '/tmp/wordpress-tests-lib';
}

// Give access to tests_add_filter() function.
require_once $_tests_dir . '/includes/functions.php';

/**
 * Manually load the plugin being tested.
 */
function _manually_load_plugin() {
	require dirname( dirname( __FILE__ ) ) . '/edit_flow.php';
}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );

// Start up the WP testing environment.
require $_tests_dir . '/includes/bootstrap.php';

// Load the abstract class for testing AJAX calls of the plugin.
require dirname( __FILE__ ) . '/testcase-edit-flow-ajax.php';

```
