#51216 closed enhancement (fixed)
Speed up tests for wp_allow_comment
| Reported by: | anonymized_8769252 | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.6 |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
Description
The fixtures in Tests_Comment_WpAllowComment are stored in static properties. But they are (re)created in the setUp() method before every test run.
We should use shared fixtures to speed up this test case.
Change History (4)
This ticket was mentioned in PR #512 on WordPress/wordpress-develop by fklein-lu.
6 years ago
#1
- Keywords has-patch has-unit-tests added
dream-encode commented on PR #512:
6 years ago
#4
Merged into WP Core in https://core.trac.wordpress.org/changeset/49002
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The fixtures in Tests_Comment_WpAllowComment are stored in static properties. But they are (re)created in the setUp() method before every test run.
We should use shared fixtures to speed up this test case.
Trac ticket: https://core.trac.wordpress.org/ticket/51216