Changeset 34810 for trunk/tests/phpunit/tests/term/getTermLink.php
- Timestamp:
- 10/03/2015 08:54:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTermLink.php
r34802 r34810 86 86 87 87 public function test_taxonomy_permastruct_with_hierarchical_rewrite_should_put_term_ancestors_in_link() { 88 global $wp_rewrite; 89 $wp_rewrite->init(); 90 $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 91 $wp_rewrite->flush_rules(); 88 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 92 89 93 90 register_taxonomy( 'wptests_tax2', 'post', array( … … 98 95 ), 99 96 ) ); 97 98 flush_rewrite_rules(); 100 99 101 100 $t1 = $this->factory->term->create( array( … … 116 115 117 116 public function test_taxonomy_permastruct_with_nonhierarchical_rewrite_should_not_put_term_ancestors_in_link() { 118 global $wp_rewrite; 119 $permalink_structure = get_option( 'permalink_structure' ); 120 $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 121 $wp_rewrite->flush_rules(); 117 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 122 118 123 119 register_taxonomy( 'wptests_tax2', 'post', array( … … 128 124 ), 129 125 ) ); 126 127 flush_rewrite_rules(); 130 128 131 129 $t1 = $this->factory->term->create( array(
Note: See TracChangeset
for help on using the changeset viewer.