Skip to content

Tests: Isolate user fixtures from randomized execution - #13187

Draft
sirreal wants to merge 1 commit into
WordPress:trunkfrom
sirreal:agent/test-order-user-isolation
Draft

Tests: Isolate user fixtures from randomized execution#13187
sirreal wants to merge 1 commit into
WordPress:trunkfrom
sirreal:agent/test-order-user-isolation

Conversation

@sirreal

@sirreal sirreal commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

  • Avoids mutating shared user IDs, refreshes cached capability fixtures, scopes INFORMATION_SCHEMA lookup to the active database, and isolates the constant-defining capability test.
  • Keeps the changes confined to PHPUnit tests and fixtures.

Verification

  • 50 consecutive randomized user-group runs passed; each completed 1,341 tests and 4,528 assertions.
  • Replayed the original failing seed and focused contaminator/consumer cases during diagnosis.
  • PHP syntax checks passed for every changed PHP file.
  • git diff --check passed.

Trac: https://core.trac.wordpress.org/ticket/65893

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant