for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Bootstrap tests
*
* @author Pronamic <[email protected]>
* @copyright 2005-2019 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Gateways\OmniKassa
*/
require_once __DIR__ . '/../vendor/autoload.php';
require_once getenv( 'WP_PHPUNIT__DIR' ) . '/includes/functions.php';
* Manually load plugin.
function _manually_load_plugin() {
global $pronamic_ideal;
$pronamic_ideal = pronamic_pay_plugin();
}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
// Bootstrap.
require getenv( 'WP_PHPUNIT__DIR' ) . '/includes/bootstrap.php';