[wp-trac] [WordPress Unit Tests] #106: Custom taxonomies and post types does not work in UT

WordPress Trac noreply at wordpress.org
Sat Apr 5 11:36:26 UTC 2014


#106: Custom taxonomies and post types does not work in UT
----------------------------+------------------
 Reporter:  sirzooro        |       Owner:
     Type:  defect          |      Status:  new
 Priority:  normal          |   Milestone:
Component:  Test Framework  |  Resolution:
 Keywords:                  |
----------------------------+------------------
Changes (by meloniq):

 * cc: meloniq@… (added)


Comment:

 I had same problem, with accessing custom post type and taxonomies pages
 to see if they are properly filtered, as a workaround I have used URLs
 with following scheme:

 Custom post type

 {{{
 // Custom post type accessible via ?p=..&post_type=..
 $this->go_to( add_query_arg( array( 'p' => $post_id, 'post_type' =>
 'some_post_type' ), '/' ) );
 }}}

 Custom taxonomies

 {{{
 // Custom taxonomy accessible via ?term=..&=taxonomy..
 $this->go_to( add_query_arg( array( 'term' => 'some_term', 'taxonomy' =>
 'some_taxonomy' ), '/' ) );
 }}}

--
Ticket URL: <https://unit-tests.trac.wordpress.org/ticket/106#comment:1>
WordPress Unit Tests <https://unit-tests.trac.wordpress.org>
WordPress Unit Tests


More information about the wp-trac mailing list