wp-pay-gateways    /
                    icepay
                
                            | 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\Icepay  | 
            ||
| 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
                                    Bug
    
    
    
        introduced 
                            by  
        
   Loading history...
                 | 
                |||
| 27 | |||
| 28 | // Bootstrap.  | 
            ||
| 29 | require getenv( 'WP_PHPUNIT__DIR' ) . '/includes/bootstrap.php';  | 
            ||
| 30 |