Changeset 35175 for trunk/tests/phpunit/tests/auth.php
- Timestamp:
- 10/15/2015 01:03:16 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/auth.php
r35174 r35175 33 33 } 34 34 35 public static function tearDownAfterClass() { 36 parent::tearDownAfterClass(); 37 38 if ( is_multisite() ) { 39 wpmu_delete_user( self::$user_id ); 40 } else { 41 wp_delete_user( self::$user_id ); 42 } 43 44 self::commit_transaction(); 45 } 46 35 47 function setUp() { 36 48 parent::setUp(); 37 49 38 50 $this->user = clone self::$_user; 51 wp_set_current_user( self::$user_id ); 39 52 } 40 53
Note: See TracChangeset
for help on using the changeset viewer.