Changeset 35186 for trunk/tests/phpunit/tests/query/results.php
- Timestamp:
- 10/15/2015 04:43:37 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/results.php
r34802 r35186 23 23 static $child_four; 24 24 25 public static function setUpBeforeClass() { 26 $factory = new WP_UnitTest_Factory; 27 25 public static function wpSetUpBeforeClass( $factory ) { 28 26 self::$cat_ids[] = $cat_a = $factory->term->create( array( 'taxonomy' => 'category', 'name' => 'cat-a' ) ); 29 27 self::$cat_ids[] = $cat_b = $factory->term->create( array( 'taxonomy' => 'category', 'name' => 'cat-b' ) ); … … 68 66 self::$post_ids[] = self::$child_three = $factory->post->create( array( 'post_title' => 'child-three', 'post_parent' => self::$parent_two, 'post_date' => '2007-01-01 00:00:03' ) ); 69 67 self::$post_ids[] = self::$child_four = $factory->post->create( array( 'post_title' => 'child-four', 'post_parent' => self::$parent_two, 'post_date' => '2007-01-01 00:00:04' ) ); 70 71 self::commit_transaction(); 72 } 73 74 public static function tearDownAfterClass() { 68 } 69 70 public static function wpTearDownAfterClass() { 75 71 foreach ( self::$cat_ids as $cat_id ) { 76 72 wp_delete_term( $cat_id, 'category' ); … … 84 80 wp_delete_post( $post_id, true ); 85 81 } 86 87 self::commit_transaction();88 82 } 89 83
Note: See TracChangeset
for help on using the changeset viewer.