Opened 5 months ago
Last modified 5 months ago
#65173 new enhancement
Add unit tests for saveDomDocument()
| 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 unit tests for the saveDomDocument() function in wp-admin/includes/misc.php. These tests ensure that the function correctly saves a DOMDocument to a file and properly converts line endings to CRLF.
Change History (2)
This ticket was mentioned in PR #11721 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
saveDomDocument()function inwp-admin/includes/misc.php. These tests ensure that the function correctly saves aDOMDocumentto a file and properly converts line endings to CRLF, which is required for IIS configuration files.The tests cover:
DOMDocumentto a specified path.Trac ticket: https://core.trac.wordpress.org/ticket/65173
AI Disclosure: