Skip to content

Commit 25a7aeb

Browse files
committed
Workflow
1 parent 8865fd6 commit 25a7aeb

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/ISSUE_TEMPLATE/phpunit-failure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ composer install
5454
composer test
5555

5656
# Run specific test file
57-
vendor/bin/phpunit tests/test-plugin.php
57+
vendor/bin/phpunit tests/EngineScriptSiteExporterTest.php
5858

5959
# Run with verbose output
6060
vendor/bin/phpunit --verbose

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,15 +819,15 @@ jobs:
819819
820820
- name: Create Test File
821821
run: |
822-
cat > tests/test-plugin.php << 'EOF'
822+
cat > tests/EngineScriptSiteExporterTest.php << 'EOF'
823823
<?php
824824
/**
825-
* Class Test_EngineScript_Site_Exporter
825+
* Class EngineScriptSiteExporterTest
826826
*
827827
* @package EngineScript_Site_Exporter
828828
*/
829829
830-
class Test_EngineScript_Site_Exporter extends WP_UnitTestCase {
830+
class EngineScriptSiteExporterTest extends WP_UnitTestCase {
831831
public function test_plugin_loaded() {
832832
$this->assertTrue(function_exists('sse_admin_menu'), 'Plugin was not loaded correctly');
833833
}
@@ -855,7 +855,7 @@ jobs:
855855
>
856856
<testsuites>
857857
<testsuite name="EngineScript Site Exporter">
858-
<directory prefix="test-" suffix=".php">./tests/</directory>
858+
<directory suffix="Test.php">./tests/</directory>
859859
</testsuite>
860860
</testsuites>
861861
</phpunit>

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- **phpcs Suppression**: Removed unnecessary `phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped` comment on a line already properly escaped with `esc_html()`.
2525
- **GEMINI.md Accuracy**: Updated WP-CLI Integration section to reflect that WP-CLI is a required dependency (returns `WP_Error` if unavailable), replacing outdated "graceful fallback" language.
2626
- **WP-CLI Language**: Updated README.md and readme.txt from "when available" to "Requires WP-CLI" to match v2.0.0 behavior.
27+
- **PHPUnit Discovery**: Renamed the generated WordPress compatibility test file/class pair to `EngineScriptSiteExporterTest` so PHPUnit 11/12 can discover it reliably.
2728

2829
### Architecture
2930

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
110110
* **Bug Fix**: Removed unnecessary phpcs suppression comment on properly escaped output
111111
* **Bug Fix**: Updated GEMINI.md WP-CLI section to reflect required dependency status
112112
* **Bug Fix**: Corrected WP-CLI description from "when available" to "requires" in README.md and readme.txt
113+
* **Bug Fix**: Renamed the generated WordPress compatibility test file/class pair so PHPUnit 11/12 can discover it reliably
113114
* **Architecture**: Extracted duplicated WP_Filesystem initialization into `sse_init_filesystem()` helper
114115
* **Architecture**: Inlined 3 pass-through wrapper functions for simpler call graph
115116
* **Architecture**: Removed 2 redundant intermediate download validation passes

0 commit comments

Comments
 (0)