Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#31 closed defect (fixed)

More comprehensive balanceTags() tests

Reported by: coffee2code Owned by:
Milestone: Priority: minor
Component: Formatting Keywords:


Attached is a patch adding my long-promised unit tests for balanceTags(), replacing the meager existing tests for the function.

Since about 200 lines of code for the tests are being introduced, I figured they'd be better off in their own file rather than being inserted into the already 1200+ line test_includes_formatting.php.

Tests: 14, Assertions: 35, Skipped: 4.

The skipped tests are:

  • three tests tagged as knownWPBug(1597) for #WP1597
  • one test tagged as knownWPBug(20401) for #WP20401

Attachments (1)

ut31.diff (7.6 KB) - added by coffee2code 6 years ago.
Aforementioned patch.

Download all attachments as: .zip

Change History (2)

6 years ago

Aforementioned patch.

#1 @coffee2code
6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [661].

Note: See TracTickets for help on using tickets.