WordPress / WordPress/plugin-check

Create a new Preparation to set table prefix

Open
#159 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Enhancement Code Quality Infrastructure Needs Dev
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.