Commit 5aebc5383cf for woocommerce

commit 5aebc5383cfe7686840a553f2c78c1410ffb91ec
Author: Luis Felipe Zaguini <26530524+zaguiini@users.noreply.github.com>
Date:   Fri Nov 6 15:20:46 2026 -0300

    Restore the Core abilities after each AbilitiesLoaderTest test (#70753)

    * Restore the Core abilities after each AbilitiesLoaderTest test

    * Add changelog entry for the AbilitiesLoaderTest teardown fix

diff --git a/plugins/woocommerce/changelog/wooai-loader-test-restores-core-abilities b/plugins/woocommerce/changelog/wooai-loader-test-restores-core-abilities
new file mode 100644
index 00000000000..58384611c2f
--- /dev/null
+++ b/plugins/woocommerce/changelog/wooai-loader-test-restores-core-abilities
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Restore the Core abilities after each AbilitiesLoaderTest test, so later test classes that use them pass in any order; no production change.
diff --git a/plugins/woocommerce/tests/php/src/Internal/Abilities/AbilitiesLoaderTest.php b/plugins/woocommerce/tests/php/src/Internal/Abilities/AbilitiesLoaderTest.php
index 5c9baffb33b..2f246eadc9a 100644
--- a/plugins/woocommerce/tests/php/src/Internal/Abilities/AbilitiesLoaderTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/Abilities/AbilitiesLoaderTest.php
@@ -161,6 +161,8 @@ class AbilitiesLoaderTest extends \WC_Unit_Test_Case {
 			}
 		}

+		$this->register_domain_abilities();
+
 		foreach ( $this->original_action_counts as $action => $original_count ) {
 			if ( null !== $original_count ) {
 				$wp_actions[ $action ] = $original_count; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited