Repository navigation
Tags
Tags
Release: Prepare the changelog for 11.3.0-rc.2 (#70812) * Delete changelog files from 11.3.0-rc.2 release * Update the readme files for the 11.3.0-rc.2 release --------- Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>
Release: Prepare the changelog for 11.3.0-rc.1 (#70772) * Delete changelog files from 11.3.0-rc.1 release * Update the readme files for the 11.3.0-rc.1 release --------- Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>
Release: Prepare the changelog for 11.3.0-beta.2 (#70554) * Delete changelog files from 11.3.0-beta.2 release * Update the readme files for the 11.3.0-beta.2 release --------- Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>
Release: Prepare the changelog for 11.3.0-beta.1 (#70234) * Delete changelog files from 11.3.0-beta.1 release * Update the readme files for the 11.3.0-beta.1 release --------- Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>
[tests] Reset the loaded shipping methods between tests (#69623) * test: Reset the loaded shipping methods in WC_Unit_Test_Case WC_Shipping keeps the methods it loaded on the singleton, and only unregister_shipping_methods() drops them. A test that loads them under its own filters or zones leaves that list for every later test: seven classes, including Checkout, which leaves a lone pickup_location method behind. #69117 reset it in ShippingControllerTest and the V4 shipping zone method tests after their leftovers broke other tests. Drop the list in clear_wc_singleton_state(), with the other WC() singleton state the rollback and hook restore miss. get_shipping_methods() loads it again on next use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: Drop the per-class shipping method resets WC_Unit_Test_Case now drops the loaded shipping methods after every test, so the resets ShippingControllerTest and the V4 shipping zone method tests ran in tearDown() are redundant. ShippingControllerTest keeps unset( WC()->shipping ), which undoes a different leak: the dynamic property one of its tests sets on the WC singleton. The Totals and session pairs that the ShippingControllerTest reset fixed in #69117 still pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(blocks): Run the Checkout block tests on WC_Unit_Test_Case Blocks\Checkout extends WP_UnitTestCase, so the new shipping method reset in WC_Unit_Test_Case doesn't reach it, and its local pickup test still left a lone pickup_location method loaded on WC_Shipping. Move it onto WC_Unit_Test_Case, as #69117 did for Totals and RateLimitsTests, so its teardown drops the list too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: Drop cleanup the rollback and base teardown already cover Review simplification. Now that Blocks\Checkout runs on WC_Unit_Test_Case, its remove_filter() after parent::tearDown() and the wp_delete_post() at the end of a test duplicate the hook restore and the database rollback. The V4 shipping zone method tests tracked every zone they created only to delete it in tearDown(), which the rollback also does; drop the tracking and the override. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: Add testdox descriptions to shipping cleanup tests Document the singleton cleanup and checkout pickup test outcomes using the required testdox annotation. Address the missing annotations raised in the PR review without changing test behavior. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
PreviousNext