[wp-trac] [WordPress Trac] #15459: Need Better Page Hierarchy Display Algo
WordPress Trac
noreply at wordpress.org
Sun Oct 26 00:13:56 UTC 2014
#15459: Need Better Page Hierarchy Display Algo
-------------------------------------+-------------------------------------
Reporter: truthmedia | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version: 3.0.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: performance,
needs-unit-tests | administration
-------------------------------------+-------------------------------------
Comment (by rodrigosprimo):
@helen I'm not sure how to test this. AFAIK, WP doesn't have functional
tests and the methods we are changing output HTML directly so it is not
easy to create unit tests for them. The only way I can think of is to use
PHPUnit_Framework_TestCase::expectOutputString() or
PHPUnit_Framework_TestCase::expectOutputRegex() to check the HTML output.
Any other suggestion? I couldn't find tests for WP_List_Table or any of
its child classes. Are there other related tests I could use as a
reference?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15459#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list