Skip to content

Use static keyword in WP_UnitTestCase_Base.#5723

Closed
Hug0-Drelon wants to merge 1 commit intoWordPress:trunkfrom
Hug0-Drelon:ticker-59999
Closed

Use static keyword in WP_UnitTestCase_Base.#5723
Hug0-Drelon wants to merge 1 commit intoWordPress:trunkfrom
Hug0-Drelon:ticker-59999

Conversation

@Hug0-Drelon
Copy link
Copy Markdown

What?

Remove self keyword in favor of static in WP_UnitTestCase_Base so factory() can be easily ovewriten.

Trac ticket: #59999


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@SergeyBiryukov
Copy link
Copy Markdown
Member

Thanks for the PR! Merged in r57149.

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.

2 participants