WordPress / WordPress/plugin-check
Create a new Preparation to set table prefix
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 362
- Forks
- 126
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 22
Description
Create a new Preparation, e.g. Use_Check_Tables_Preparation that sets the wpdb prefix to the test tables. The cleanup function returned should reverse this. See https://github.com/10up/plugin-check/pull/142#discussion_r1180645519
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the existing Preparation implementations and the linked pull-request discussion first, focusing on how test-table prefixes and cleanup callbacks are handled. Add a preparation such as Use_Check_Tables_Preparation that changes the wpdb prefix and returns cleanup restoring the original value; done means the prefix is set for tests and fully reversed afterward.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- databases, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100