Changeset 28964
- Timestamp:
- 07/03/2014 12:49:32 AM (10 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/canonical.php
r26091 r28964 20 20 21 21 function setUp() { 22 global $wp_rewrite; 23 22 24 parent::setUp(); 23 25 … … 26 28 update_option( 'posts_per_page', 5 ); 27 29 28 update_option( 'permalink_structure', $this->structure ); 30 $wp_rewrite->init(); 31 $wp_rewrite->set_permalink_structure( $this->structure ); 32 29 33 create_initial_taxonomies(); 30 $GLOBALS['wp_rewrite']->init(); 31 flush_rewrite_rules();34 35 $wp_rewrite->flush_rules(); 32 36 33 37 $this->old_current_user = get_current_user_id(); -
trunk/tests/phpunit/tests/link.php
r28961 r28964 35 35 $post_id2 = $this->factory->post->create(); 36 36 37 $wp_rewrite-> permalink_structure = '';37 $wp_rewrite->init(); 38 38 $wp_rewrite->set_permalink_structure( '' ); 39 $wp_rewrite->flush_rules(); 39 40 40 41 // Basic case
Note: See TracChangeset
for help on using the changeset viewer.