[wp-trac] [WordPress Trac] #28310: Accessing properties of null returned from get_post()
WordPress Trac
noreply at wordpress.org
Mon Sep 1 19:02:02 UTC 2014
#28310: Accessing properties of null returned from get_post()
-------------------------------------------+-----------------------------
Reporter: GaryJ | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.0
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests punt | Focuses:
-------------------------------------------+-----------------------------
Comment (by nacin):
The tests pre-[29351] is actually the preferred design of tests. Tests
should be atomic and simple. Otherwise when one fails, the rest don't
execute either, and you end up fixing one test to find additional
failures. Also, the function names self-described exactly what was being
tested.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28310#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list