[wp-trac] [WordPress Trac] #38157: Add tests for get_post_type_labels()

WordPress Trac noreply at wordpress.org
Tue Jan 16 10:15:01 UTC 2018


#38157: Add tests for get_post_type_labels()
--------------------------------------+-------------------------
 Reporter:  swissspidy                |       Owner:  swissspidy
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  4.8
Component:  Posts, Post Types         |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-------------------------

Comment (by birgire):

 Hi @swissspidy

 I just recalled you comment here on [ticket:42044#comment:1] regarding the
 cleanup, when I skimmed over these methods in [attachment:38157.diff] :

 {{{
 test_labels_should_be_added_when_registering_a_post_type()
 test_label_should_be_derived_from_labels_when_registering_a_post_type()
 test_should_fall_back_on_defaults_when_filtered_labels_do_not_contain_the_keys
 }}}

 The first one calls {{{unregister_post_type( 'foo' )}}} before the
 assertions but the latter two do it afterwards.

 Would it be relevant here?

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


More information about the wp-trac mailing list