Skip to content

Commit

Permalink
Add more control to plugins mapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Sep 15, 2023
1 parent 20f4f6f commit 221a460
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
{
"core": null,
"plugins": [
".",
"../../../",
"./tests/wp-env-helper.php",
"pronamic/wp-pronamic-pay-test-helper",
"https://downloads.wordpress.org/plugin/woocommerce.zip",
"https://github.com/pronamic/woocommerce-subscriptions/releases/download/4.6.0/woocommerce-subscriptions.zip",
"https://downloads.wordpress.org/plugin/pronamic-client.zip",
"https://downloads.wordpress.org/plugin/query-monitor.zip",
"https://downloads.wordpress.org/plugin/one-time-login.zip",
"https://downloads.wordpress.org/plugin/wp-plugin-dependencies.zip"
],
"mappings": {
"wp-content/plugins/pronamic-ideal": "../../../",
"wp-content/plugins/pronamic-pay-woocommerce": ".",
"wp-content/plugins/woocommerce-subscriptions": "https://github.com/pronamic/woocommerce-subscriptions/releases/download/v5.4.0/woocommerce-subscriptions-5.4.0.zip"
},
"config": {
"PRONAMIC_PAY_DEBUG": true
}
Expand Down
19 changes: 19 additions & 0 deletions tests/wp-env-helper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
/**
* Plugin Name: wp-env helper
* Requires Plugins: pronamic-ideal, pronamic-pay-woocommerce, woocommerce-subscriptions
*
* @author Pronamic <info@pronamic.eu>
* @copyright 2005-2023 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\WooCommerce
*/

add_action(
'plugins_loaded',
function() {
activate_plugin( 'pronamic-ideal/pronamic-ideal.php' );
activate_plugin( 'pronamic-pay-woocommerce/pronamic-pay-woocommerce.php' );
activate_plugin( 'woocommerce-subscriptions/woocommerce-subscriptions.php' );
}
);

0 comments on commit 221a460

Please sign in to comment.