Failed Conditions
Push — develop ( 599fdd...2bb129 )
by Reüel
03:45
created

_manually_load_plugin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Bootstrap tests
4
 *
5
 * @author    Pronamic <[email protected]>
6
 * @copyright 2005-2019 Pronamic
7
 * @license   GPL-3.0-or-later
8
 * @package   Pronamic\WordPress\Pay\Gateways\OmniKassa
9
 */
10
11
require_once __DIR__ . '/../vendor/autoload.php';
12
13
require_once getenv( 'WP_PHPUNIT__DIR' ) . '/includes/functions.php';
14
15
/**
16
 * Manually load plugin.
17
 */
18
function _manually_load_plugin() {
19
	global $pronamic_ideal;
20
21
	$pronamic_ideal = pronamic_pay_plugin();
22
}
23
24
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
25
26
// Bootstrap.
27
require getenv( 'WP_PHPUNIT__DIR' ) . '/includes/bootstrap.php';
28