Skip to content

Commit 0f5a0c0

Browse files
authored
Update
1 parent 3b936f2 commit 0f5a0c0

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/wp-compatibility-test.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ jobs:
222222
# Use WordPress-specific PHPMD configuration (WordPress snake_case compatible)
223223
echo "Using WordPress-specific PHPMD configuration (WordPress snake_case compatible)..."
224224
# Run PHPMD but don't fail the build on naming convention issues
225-
phpmd optimizations-ace-mc.php text phpmd.xml || echo "PHPMD completed with warnings (WordPress naming conventions may differ from PHPMD defaults)"
225+
phpmd simple-wp-site-exporter.php text phpmd.xml || echo "PHPMD completed with warnings (WordPress naming conventions may differ from PHPMD defaults)"
226226
227227
- name: Create issue on PHPMD failure
228228
if: ${{ failure() }}
@@ -584,7 +584,7 @@ jobs:
584584
/**
585585
* PHPUnit bootstrap file for plugin tests.
586586
*
587-
* @package Simple_WP_Optimizer
587+
* @package Simple_WP_Site_Exporter
588588
*/
589589
590590
require_once '/tmp/wordpress-tests-lib/includes/functions.php';
@@ -594,7 +594,7 @@ jobs:
594594
return;
595595
}, 0);
596596
597-
require dirname( dirname( __FILE__ ) ) . '/simple-wp-optimizer.php';
597+
require dirname( dirname( __FILE__ ) ) . '/simple-wp-site-exporter.php';
598598
}
599599
600600
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
@@ -607,14 +607,14 @@ jobs:
607607
cat > tests/test-plugin.php << 'EOF'
608608
<?php
609609
/**
610-
* Class Test_Simple_WP_Optimizer
610+
* Class Test_Simple_WP_Site_Exporter
611611
*
612-
* @package Simple_WP_Optimizer
612+
* @package Simple_WP_Site_Exporter
613613
*/
614614
615-
class Test_Simple_WP_Optimizer extends WP_UnitTestCase {
615+
class Test_Simple_WP_Site_Exporter extends WP_UnitTestCase {
616616
public function test_plugin_loaded() {
617-
$this->assertTrue(function_exists('es_optimizer_init_settings'), 'Plugin was not loaded correctly');
617+
$this->assertTrue(function_exists('sse_admin_menu'), 'Plugin was not loaded correctly');
618618
}
619619
620620
public function test_wordpress_version_compatibility() {
@@ -689,10 +689,6 @@ jobs:
689689
steps:
690690
- name: Checkout code
691691
uses: actions/checkout@v4
692-
with:
693-
# Always fetch the latest commit, disable any caching
694-
fetch-depth: 0
695-
clean: true
696692

697693
- name: Setup PHP ${{ matrix.php-version }}
698694
uses: shivammathur/setup-php@v2

0 commit comments

Comments
 (0)