[wp-trac] [WordPress Trac] #35985: Add tests for 'public' and related arguments in register_post_type()

WordPress Trac noreply at wordpress.org
Wed May 18 17:13:14 UTC 2016


#35985: Add tests for 'public' and related arguments in register_post_type()
--------------------------------------+---------------------------
 Reporter:  DrewAPicture              |       Owner:  DrewAPicture
     Type:  task (blessed)            |      Status:  closed
 Priority:  normal                    |   Milestone:  4.5
Component:  Posts, Post Types         |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------------

Comment (by jorbin):

 In [changeset:"37459"]:
 {{{
 #!CommitTicketReference repository="" revision="37459"
 Correct usage of @Covers for Tests_Post_Types

 When @covers is used with a plain alphanumeric string, PHPUnit assumes
 that it is covering a class. If there is no class, it fails and exits
 rather than continuing to generate coverage. To cover a global function,
 the name must start with ::. See
 https://phpunit.de/manual/5.3/en/appendixes.annotations.html#appendixes.annotations.covers

 Introduced in [36768].

 Fixes #36867. See #35985
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35985#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list