Changeset 35186 for trunk/tests/phpunit/tests/feed/rss2.php
- Timestamp:
- 10/15/2015 04:43:37 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/feed/rss2.php
r35162 r35186 13 13 static $posts; 14 14 15 public static function setUpBeforeClass() { 16 $factory = new WP_UnitTest_Factory(); 17 15 public static function wpSetUpBeforeClass( $factory ) { 18 16 self::$user = $factory->user->create(); 19 17 self::$posts = $factory->post->create_many( 5, array( 20 18 'post_author' => self::$user, 21 19 ) ); 22 23 self::commit_transaction();24 20 } 25 21 26 public static function tearDownAfterClass() {22 public static function wpTearDownAfterClass() { 27 23 if ( is_multisite() ) { 28 24 wpmu_delete_user( self::$user ); … … 34 30 wp_delete_post( $post, true ); 35 31 } 36 37 self::commit_transaction();38 32 } 39 33
Note: See TracChangeset
for help on using the changeset viewer.