Skip to content

Tests: Remove unused properties and helper methods from test classes - #13435

Open
Soean wants to merge 1 commit into
WordPress:trunkfrom
Soean:tests/remove-unused-test-helpers
Open

Tests: Remove unused properties and helper methods from test classes#13435
Soean wants to merge 1 commit into
WordPress:trunkfrom
Soean:tests/remove-unused-test-helpers

Conversation

@Soean

@Soean Soean commented Sep 8, 2026

Copy link
Copy Markdown
Member

Removes dead code from the PHPUnit test suite: six private properties that are never read, and nine helper methods in Tests_HTTPS_Detection that lost their callers when changeset 56664 removed the tests hooking them onto pre_http_request.

No test behaviour changes.

Follow-up to r32648, r43584, r54799, r56664, r61700.

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

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5
Used for: Locating the unused properties and methods and verifying they have no remaining callers; the changes were reviewed and committed by me.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props soean.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

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