Changeset 35186 for trunk/tests/phpunit/tests/user/countUserPosts.php
- Timestamp:
- 10/15/2015 04:43:37 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/countUserPosts.php
r32523 r35186 9 9 static $post_ids = array(); 10 10 11 public static function setUpBeforeClass() { 12 $factory = new WP_UnitTest_Factory(); 13 11 public static function wpSetUpBeforeClass( $factory ) { 14 12 self::$user_id = $factory->user->create( array( 15 13 'role' => 'author', … … 34 32 'post_type' => 'wptests_pt', 35 33 ) ) ); 36 37 self::commit_transaction();38 34 } 39 35 40 public static function tearDownAfterClass() {36 public static function wpTearDownAfterClass() { 41 37 if ( is_multisite() ) { 42 38 wpmu_delete_user( self::$user_id ); … … 48 44 wp_delete_post( $post_id, true ); 49 45 } 50 51 self::commit_transaction();52 46 } 53 47
Note: See TracChangeset
for help on using the changeset viewer.