Opened 5 months ago
Last modified 5 months ago
#65172 new enhancement
Tests: Add unit tests for iis7_add_rewrite_rule()
| Reported by: | pbearne | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: | tests |
Description
This ticket adds comprehensive unit tests for the iis7_add_rewrite_rule() function in wp-admin/includes/misc.php to ensure correct addition of WordPress rewrite rules to IIS7 web.config files, including handling of missing configuration elements.
Change History (2)
This ticket was mentioned in PR #11720 on WordPress/wordpress-develop by @pbearne.
5 months ago
#1
- Keywords has-patch has-unit-tests added
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Description:
This PR adds unit tests for the
iis7_add_rewrite_rule()function inwp-admin/includes/misc.php. These tests ensure that WordPress rewrite rules are correctly added to IIS7web.configfiles, handling cases where configuration elements might be missing.The tests cover:
Trac ticket: https://core.trac.wordpress.org/ticket/65172
AI Disclosure: