WordPress.org

Make WordPress Core

Opened 2 weeks ago

Last modified 2 weeks ago

#51216 reviewing enhancement

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 (2)

This ticket was mentioned in PR #512 on WordPress/wordpress-develop by fklein-lu.


2 weeks ago

  • Keywords has-patch has-unit-tests added

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

#2 @SergeyBiryukov
2 weeks ago

  • Milestone changed from Awaiting Review to 5.6
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing
Note: See TracTickets for help on using tickets.