wpstarter/o-testbench-core
Testing helper for WpStarter development, ported from Laravel's Testbench component. Provides a familiar testing harness for WpStarter packages, with version compatibility matching WpStarter 1.x to Testbench Core 1.x. See the original Testbench docs for detailed usage.
Purpose Alignment:
The package remains a WordPress-specific fork of orchestra/testbench-core, explicitly designed for PHPUnit-based testing of WordPress plugins/themes. With the v2.1.1 release, it has moved through at least one full major-version evolution (v1.0 → v2.x), signaling that the maintainers are actively iterating on the WordPress testing paradigm — not pivoting toward Laravel. For Laravel applications, this package is only relevant where there is a direct integration with WordPress (REST API calls, shared DB models, hybrid architectures). Pure Laravel testing should continue to use native laravel/testbench or Pest.
Core Functionality: The release notes for v2.1.1 are empty, which is a notable process gap for a major-version-line release (v2.1.1 implies at least one major break from v1.0 plus two minor/patch iterations). Absent a changelog, TPMs must assume the v2.x line contains breaking changes relative to v1.0 by semver convention. Expected scope based on the fork's trajectory:
TestCase).Key Use Cases (Unchanged):
Laravel Compatibility: Still low. v2.1.1 does not appear to address Laravel's testing paradigms. However, if the v2.x line stabilizes WP bootstrapping, it may marginally improve hybrid testing viability — but only if the changelog confirms no regressions in this area.
Technical Debt:
orchestra/testbench-core at a pace that makes upstream-sync non-trivial.Alternatives (Reiterated):
WP_Mock or wp-cli + PHPUnit for pure WP tests.Fork Risks (Escalated):
TestCase, helper methods, and bootstrap behavior before upgrading.Complexity Overhead:
New Risks in v2.1.1:
orchestra/testbench-core sync still planned, or has the fork become permanent?WP_Mock, custom utilities, HTTP tests) reduce long-term dependency on an undocumented fork?Target Use Case (Unchanged):
Non-Target Use Case (Reiterated):
laravel/testbench / Pest.Stack Compatibility (Updated):
composer require wpstarter/o-testbench-core --dev.Recover the Changelog:
CHANGELOG.md / git log. Do not upgrade without this.Assess Scope:
Pilot Upgrade:
wpstarter/o-testbench-core to 2.1.*, and run the hybrid suite.WP_Mock + Laravel HTTP tests) for simpler setups.CI/CD Setup:
composer require wpstarter/o-testbench-core:^2.1 --dev
./vendor/bin/phpunit --testdox-html --filter TestLaravelWPIntegration
Gradual Adoption:
Pros (Reiterated):
Cons (Reiterated + New):
testbench) from WP-dependent tests.^2.1 and monitor for further undocumented releases.orchestra/testbench-core for breaking changes.TestCase, helper APIs, and WP bootstrap.How can I help you explore Laravel packages today?