PluginProbe ʕ •ᴥ•ʔ
Razorpay for WooCommerce / trunk
Razorpay for WooCommerce vtrunk
4.8.7 4.8.6 4.8.5 4.8.4 trunk 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.0-beta 1.6.1 1.6.2 1.6.3 1.6.5 2.0.0 2.0.1 2.1.0 2.2.0 2.3.0 2.3.1 2.3.2 2.4.0 2.4.1 2.4.2 2.4.3 2.5.0 2.6.0 2.7.0 2.7.1 2.7.2 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 3.0.0 3.0.1 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 3.3.0 3.4.0 3.4.1 3.5.0 3.5.1 3.6.0 3.7.0 3.7.1 3.7.2 3.8.0 3.8.1 3.8.2 3.8.3 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.0.1 4.1.0 4.2.0 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.4.0 4.4.1 4.4.2 4.4.3 4.5.0 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7 4.5.8 4.5.9 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.6.8 4.6.9 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7 4.7.8 4.7.9 4.8.0 4.8.1 4.8.2 4.8.3
woo-razorpay / tests / phpunit / bootstrap.php
woo-razorpay / tests / phpunit Last commit date
includes 3 years ago mockfactory 1 month ago tests 1 month ago util 3 years ago bootstrap.php 3 years ago wp-tests-config.php 3 years ago
bootstrap.php
31 lines
1 <?php
2
3 // path to test lib bootstrap.php
4 $test_lib_bootstrap_file = dirname( __FILE__ ) . '/includes/bootstrap.php';
5
6 if ( ! file_exists( $test_lib_bootstrap_file ) ) {
7 echo PHP_EOL . "Error : unable to find " . $test_lib_bootstrap_file . PHP_EOL;
8 exit( '' . PHP_EOL );
9 }
10
11 // set plugin and options for activation
12 $GLOBALS[ 'wp_tests_options' ] = array(
13 'active_plugins' => array(
14 'woocommerce/woocommerce.php',
15 basename(realpath(dirname(__FILE__) . '/../../')) . '/woo-razorpay.php'
16 ),
17 'wpsp_test' => true
18 );
19
20 // call test-lib's bootstrap.php
21 require_once $test_lib_bootstrap_file;
22
23 require_once 'tests/phpunit/util/class-util.php';
24 require_once PLUGIN_DIR . '/vendor/autoload.php';
25 $current_user = new WP_User( 1 );
26 $current_user->set_role( 'administrator' );
27
28 echo PHP_EOL;
29 echo 'Using Wordpress core : ' . ABSPATH . PHP_EOL;
30 echo PHP_EOL;
31