Make WordPress Core

Opened 7 weeks ago

Last modified 5 weeks ago

#65146 new enhancement

Unit Tests: Add tests for save_mod_rewrite_rules()

Reported by: pbearne's profile pbearne Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch has-unit-tests
Focuses: tests Cc:

Description

The function save_mod_rewrite_rules() in src/wp-admin/includes/misc.php currently lacks unit tests. This ticket covers the addition of comprehensive unit tests for this function, ensuring it correctly manages the .htaccess file based on multisite status, server support, and rewrite rules provided by the WP_Rewrite component.

Change History (2)

This ticket was mentioned in PR #11670 on WordPress/wordpress-develop by @pbearne.


7 weeks ago
#1

  • Keywords has-patch has-unit-tests added

…misc.php

Trac ticket: https://core.trac.wordpress.org/ticket/65146

## Use of AI Tools
AI assistance: Yes
Tool(s): Junie (JetBrains)
Model(s): gemini-3-flash-preview
Used for: Test structure generation, global variable mocking strategy, and dataProvider implementation.

#2 @desrosj
5 weeks ago

  • Focuses tests added

Adding the tests focus, which is used to indicate a ticket is solely focused on adding tests.

Note: See TracTickets for help on using tickets.