Automattic / Automattic/co-authors-plus
test__author_queried_object_fix doesn't need to initialise wp_rewrite
Open
priority: low
status: needs investigation
type: question
- Dominant language
- PHP
- Stars
- 322
- Forks
- 216
- Avg merge
- 7h 50m
- Merged PRs (30d)
- 65
Description
The test [`test__author_queried_object_fix`](https://github.com/Automattic/Co-Authors-Plus/blob/master/tests/test-author-queried-object.php) doesn't need to use `wp_rewrite`. It passes without it. What does it even have to do with the feature being tested?
Contributor guide
Research direction
Open tests/test-author-queried-object.php and find test__author_queried_object_fix plus its wp_rewrite initialization. Run that test before and after removing the unnecessary setup; done means the test still passes without initializing wp_rewrite.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- testing
- Issue type
- Refactor
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100