You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Run PHPMD but don't fail the build on naming convention issues
219
-
phpmd optimizations-ace-mc.php text phpmd.xml || echo "PHPMD completed with warnings (WordPress naming conventions may differ from PHPMD defaults)"
219
+
phpmd free-gift-bulk-coupon-generator.php text phpmd.xml || echo "PHPMD completed with warnings (WordPress naming conventions may differ from PHPMD defaults)"
220
220
221
221
- name: Create issue on PHPMD failure
222
222
if: ${{ failure() }}
@@ -608,7 +608,8 @@ jobs:
608
608
609
609
class Test_Free_Gift_Bulk_Coupon_Generator extends WP_UnitTestCase {
610
610
public function test_plugin_loaded() {
611
-
$this->assertTrue(function_exists('fgbcg_admin_menu'), 'Plugin was not loaded correctly');
611
+
$this->assertTrue(function_exists('wc_free_gift_bulk_coupons_is_loaded'), 'Plugin helper function should exist');
612
+
$this->assertTrue(wc_free_gift_bulk_coupons_is_loaded(), 'Plugin was not loaded correctly');
612
613
}
613
614
614
615
public function test_wordpress_version_compatibility() {
@@ -628,9 +629,8 @@ jobs:
628
629
629
630
public function test_woocommerce_version_compatibility() {
630
631
if (class_exists('WooCommerce')) {
631
-
global $woocommerce;
632
-
if ($woocommerce && isset($woocommerce->version)) {
0 commit comments