[wp-trac] [WordPress Trac] #40969: RFE: get_template_part() to return something or warn when nothing found
WordPress Trac
noreply at wordpress.org
Fri Jun 5 11:04:35 UTC 2020
#40969: RFE: get_template_part() to return something or warn when nothing found
-------------------------------------------------+-------------------------
Reporter: sphakka | Owner: (none)
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 5.5
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback needs-dev- | Focuses: template
note early has-unit-tests needs-testing |
-------------------------------------------------+-------------------------
Comment (by tferry):
Hey @birgire, thanks for the suggestions - I've updated the tests to be
simpler with some of the phpunit functions you mentioned.
I tried `expectOutputString()` but it didn't handle the newlines in the
test files particularly well, so I used `expectOutputRegex()` instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40969#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list