Skip to content

Commit

Permalink
Activate / deactivate _load_textdomain Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
n7studios committed Dec 6, 2024
1 parent fdb143a commit b8ef132
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
DB_PASS: root
DB_HOST: localhost
INSTALL_PLUGINS: "custom-order-numbers-for-woocommerce woocommerce woocommerce-gateway-stripe" # Don't include this repository's Plugin here.
INSTALL_PLUGINS_URLS: "http://cktestplugins.wpengine.com/wp-content/uploads/2024/11/disable-doing-it-wrong-notices.zip" # URLs to specific third party Plugins
STRIPE_TEST_PUBLISHABLE_KEY: ${{ secrets.STRIPE_TEST_PUBLISHABLE_KEY }} # Stripe Test API Publishable Key, stored in the repository's Settings > Secrets
STRIPE_TEST_SECRET_KEY: ${{ secrets.STRIPE_TEST_SECRET_KEY }} # Stripe Test API Secret Key, stored in the repository's Settings > Secrets
CONVERTKIT_API_KEY: ${{ secrets.CONVERTKIT_API_KEY }} # ConvertKit API Key, stored in the repository's Settings > Secrets
Expand Down Expand Up @@ -126,6 +127,11 @@ jobs:
working-directory: ${{ env.ROOT_DIR }}
run: wp-cli plugin install ${{ env.INSTALL_PLUGINS }} --activate

# env.INSTALL_PLUGINS_URLS is a list of Plugin URLs, space separated, to install specific versions ot third party Plugins.
- name: Install Free Third Party WordPress Specific Version Plugins
working-directory: ${{ env.ROOT_DIR }}
run: wp-cli plugin install ${{ env.INSTALL_PLUGINS_URLS }}

# These should be stored as a separated list of URLs in the repository Settings > Secrets > Repository Secret > CONVERTKIT_PAID_PLUGIN_URLS.
# We cannot include the URLs in this file, as they're not Plugins we are permitted to distribute.
- name: Install Paid Third Party WordPress Plugins
Expand Down
5 changes: 5 additions & 0 deletions tests/_support/Helper/Acceptance/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public function deactivateConvertKitPlugin($I)
*/
public function activateWooCommerceAndConvertKitPlugins($I)
{
// Activate Disable _load_textdomain notice.
$I->activateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');

// Activate ConvertKit Plugin.
$I->activateConvertKitPlugin($I);

Expand Down Expand Up @@ -78,6 +81,8 @@ public function deactivateWooCommerceAndConvertKitPlugins($I)
// Deactivate WooCommerce Stripe Gateway before WooCommerce, to prevent WooCommerce throwing a fatal error.
$I->deactivateThirdPartyPlugin($I, 'woocommerce-gateway-stripe');
$I->deactivateThirdPartyPlugin($I, 'woocommerce');

$I->deactivateThirdPartyPlugin($I, 'disable-_load_textdomain_just_in_time-doing_it_wrong-notice');
}

/**
Expand Down

0 comments on commit b8ef132

Please sign in to comment.