Changeset 35186 for trunk/tests/phpunit/tests/user/listAuthors.php
- Timestamp:
- 10/15/2015 04:43:37 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/listAuthors.php
r31676 r35186 24 24 'html' => true ); 25 25 */ 26 public static function setUpBeforeClass() { 27 $factory = new WP_UnitTest_Factory; 28 26 public static function wpSetUpBeforeClass( $factory ) { 29 27 self::$users[] = $factory->user->create( array( 'user_login' => 'zack', 'display_name' => 'zack', 'role' => 'author', 'first_name' => 'zack', 'last_name' => 'moon' ) ); 30 28 self::$users[] = $factory->user->create( array( 'user_login' => 'bob', 'display_name' => 'bob', 'role' => 'author', 'first_name' => 'bob', 'last_name' => 'reno' ) ); … … 41 39 self::$user_urls[] = get_author_posts_url( $userid ); 42 40 } 43 44 self::commit_transaction();45 41 } 46 42 47 public static function tearDownAfterClass() {43 public static function wpTearDownAfterClass() { 48 44 foreach ( array_merge( self::$users, array( self::$fred_id ) ) as $user_id ) { 49 45 if ( is_multisite() ) { … … 57 53 wp_delete_post( $post_id, true ); 58 54 } 59 60 self::commit_transaction();61 55 } 62 56
Note: See TracChangeset
for help on using the changeset viewer.