Changeset 42343 for trunk/tests/phpunit/tests/term/wpTaxonomy.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpTaxonomy.php
r39919 r42343 33 33 34 34 $taxonomy = rand_str(); 35 $taxonomy_object = new WP_Taxonomy( $taxonomy, 'post', array( 36 'public' => true, 37 'rewrite' => false, 38 'query_var' => 'foobar', 39 ) ); 35 $taxonomy_object = new WP_Taxonomy( 36 $taxonomy, 'post', array( 37 'public' => true, 38 'rewrite' => false, 39 'query_var' => 'foobar', 40 ) 41 ); 40 42 41 43 $taxonomy_object->add_rewrite_rules(); … … 56 58 57 59 $taxonomy = rand_str(); 58 $taxonomy_object = new WP_Taxonomy( $taxonomy, 'post', array( 59 'public' => true, 60 'rewrite' => true, 61 ) ); 60 $taxonomy_object = new WP_Taxonomy( 61 $taxonomy, 'post', array( 62 'public' => true, 63 'rewrite' => true, 64 ) 65 ); 62 66 63 67 $taxonomy_object->add_rewrite_rules(); … … 73 77 public function test_adds_ajax_callback() { 74 78 $taxonomy = rand_str(); 75 $taxonomy_object = new WP_Taxonomy( $taxonomy, 'post', array( 76 'public' => true, 77 'rewrite' => true, 78 ) ); 79 $taxonomy_object = new WP_Taxonomy( 80 $taxonomy, 'post', array( 81 'public' => true, 82 'rewrite' => true, 83 ) 84 ); 79 85 80 86 $taxonomy_object->add_hooks();
Note: See TracChangeset
for help on using the changeset viewer.