Changeset 35191 for trunk/tests/phpunit/includes/testcase-canonical.php
- Timestamp:
- 10/15/2015 05:50:40 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-canonical.php
r34802 r35191 39 39 * @since 4.1.0 40 40 */ 41 public static function generate_shared_fixtures() { 42 global $wp_rewrite; 43 44 $factory = new WP_UnitTest_Factory; 45 41 public static function generate_shared_fixtures( $factory ) { 46 42 self::$old_current_user = get_current_user_id(); 47 43 self::$author_id = $factory->user->create( array( 'user_login' => 'canonical-author' ) ); … … 131 127 $tag1 = $factory->term->create( array( 'name' => 'post-formats' ) ); 132 128 self::$term_ids[ $tag1 ] = 'post_tag'; 133 134 self::commit_transaction();135 129 } 136 130 … … 141 135 */ 142 136 public static function delete_shared_fixtures() { 143 global $wp_rewrite;144 145 137 if ( is_multisite() ) { 146 138 wpmu_delete_user( self::$author_id ); … … 166 158 self::$term_ids = array(); 167 159 self::$terms = array(); 168 169 self::commit_transaction();170 160 } 171 161
Note: See TracChangeset
for help on using the changeset viewer.