Passed
Push — master ( d1daa0...b27186 )
by Lucien
01:58
created

_manually_load_plugin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 2
rs 10
c 1
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
$_tests_dir = getenv('WP_TESTS_DIR');
3
if (!$_tests_dir) {
4
  $_tests_dir = '/tmp/wordpress-tests-lib';
5
}
6
require_once $_tests_dir . '/includes/functions.php';
7
require_once __DIR__ . '/../vendor/autoload.php';
8
function _manually_load_plugin() {
9
  require __DIR__ . '/../WPTools.php';
10
}
11
12
tests_add_filter('muplugins_loaded', '_manually_load_plugin');
13
require $_tests_dir . '/includes/bootstrap.php';
14