Failed Conditions
Push — develop ( ca1e89...363dd7 )
by Remco
23:05 queued 19:05
created

tests/bootstrap.php (1 issue)

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\ING\KassaCompleet
9
 */
10
11
putenv( 'WP_PHPUNIT__TESTS_CONFIG=tests/wp-config.php' );
12
13
require_once __DIR__ . '/../vendor/autoload.php';
14
15
require_once getenv( 'WP_PHPUNIT__DIR' ) . '/includes/functions.php';
16
17
/**
18
 * Manually load plugin.
19
 */
20
function _manually_load_plugin() {
21
	global $pronamic_ideal;
22
23
	$pronamic_ideal = pronamic_pay_plugin();
24
}
25
26
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
0 ignored issues
show
'_manually_load_plugin' of type string is incompatible with the type array|object expected by parameter $function_to_add of tests_add_filter(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

26
tests_add_filter( 'muplugins_loaded', /** @scrutinizer ignore-type */ '_manually_load_plugin' );
Loading history...
27
28
// Bootstrap.
29
require getenv( 'WP_PHPUNIT__DIR' ) . '/includes/bootstrap.php';
30