Passed
Push — develop ( 398536...a1b7f9 )
by Remco
05:03
created

_manually_load_plugin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
0 ignored issues
show
Coding Style introduced by
This file is missing a doc comment.
Loading history...
2
3
$_tests_dir = getenv( 'WP_TESTS_DIR' );
4
if ( ! $_tests_dir ) {
5
	$_tests_dir = '/tmp/wordpress-tests-lib';
6
}
7
8
require_once $_tests_dir . '/includes/functions.php';
9
10
function _manually_load_plugin() {
0 ignored issues
show
Coding Style Documentation introduced by
Missing function doc comment
Loading history...
11
	require dirname( __FILE__ ) . '/../pronamic-ideal.php';
12
}
13
14
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
15
16
require $_tests_dir . '/includes/bootstrap.php';
17