Changeset 34810 for trunk/tests/phpunit/tests/query/isTerm.php
- Timestamp:
- 10/03/2015 08:54:11 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/query/isTerm.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/isTerm.php
r31622 r34810 24 24 25 25 function setUp() { 26 global $wp_rewrite;27 26 parent::setUp(); 28 27 … … 32 31 $GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; 33 32 34 $wp_rewrite->init(); 35 $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 33 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 36 34 37 35 create_initial_taxonomies(); 38 36 register_taxonomy( 'testtax', 'post', array( 'public' => true ) ); 39 37 40 $wp_rewrite->flush_rules();38 flush_rewrite_rules(); 41 39 42 40 $this->tag_id = $this->factory->tag->create( array( 'slug' => 'tag-slug' ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)