WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 4 years ago

#34070 closed task (blessed) (fixed)

Organize phpunit tests by component (better)

Reported by: DrewAPicture Owned by:
Milestone: 4.4 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords:
Focuses: Cc:

Description

In working to improve our contributor documentation in the core contributor handbook, part of that is to make organization of the core unit tests be a more predictable.

A great deal of our tests are already organized by component, that is to say comment-template => comment/template.php, post-template.php => post/template.php, etc.

However, there are still quite a few tests scattered all over the place in multiple files. This will serve as a tracking ticket for relocating those wayward tests.

Change History (3)

#1 @DrewAPicture
5 years ago

In 34687:

Tests: Consolidate author-template tests into a single, more logically-placed file, tests/user/author.php.

See #34070.

#2 @DrewAPicture
5 years ago

In 34688:

Tests: Relocate tests for general-template.php to a more logically-placed (and named) file, tests/general/template.php.

See #34070.

#3 @DrewAPicture
4 years ago

  • Milestone changed from Future Release to 4.4
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.