Changeset 43571 for trunk/tests/phpunit/tests/query/conditionals.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/conditionals.php
r42343 r43571 801 801 $cpt_name = 'ptawtq'; 802 802 register_post_type( 803 $cpt_name, array( 803 $cpt_name, 804 array( 804 805 'taxonomies' => array( 'post_tag', 'category' ), 805 806 'rewrite' => true, … … 829 830 $term = get_term_by( 'slug', 'tag-slug', 'post_tag' ); 830 831 $query->set( 831 'tax_query', array( 832 'tax_query', 833 array( 832 834 array( 833 835 'taxonomy' => 'post_tag', … … 844 846 $cpt_name = 'thearray'; 845 847 register_post_type( 846 $cpt_name, array( 848 $cpt_name, 849 array( 847 850 'taxonomies' => array( 'post_tag', 'category' ), 848 851 'rewrite' => true, … … 895 898 896 899 register_post_type( 897 $post_type, array( 900 $post_type, 901 array( 898 902 'hierarchical' => true, 899 903 'rewrite' => true, … … 1000 1004 1001 1005 $attachment_id = self::factory()->attachment->create_object( 1002 'image.jpg', $post_id, array( 1006 'image.jpg', 1007 $post_id, 1008 array( 1003 1009 'post_mime_type' => 'image/jpeg', 1004 1010 )
Note: See TracChangeset
for help on using the changeset viewer.