#51216 closed enhancement (fixed)
Speed up tests for wp_allow_comment
Reported by: | Frank Klein | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
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.
4 years ago
#1
- Keywords has-patch has-unit-tests added
#2
@
4 years ago
- Milestone changed from Awaiting Review to 5.6
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
dream-encode commented on PR #512:
4 years ago
#4
Merged into WP Core in https://core.trac.wordpress.org/changeset/49002
Note: See
TracTickets for help on using
tickets.
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