Changeset 35186 for trunk/tests/phpunit/tests/auth.php
- Timestamp:
- 10/15/2015 04:43:37 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/auth.php
r35175 r35186 16 16 protected $nonce_failure_hook = 'wp_verify_nonce_failed'; 17 17 18 static function setUpBeforeClass() { 19 parent::setUpBeforeClass(); 20 21 $factory = new WP_UnitTest_Factory(); 22 18 public static function wpSetUpBeforeClass( $factory ) { 23 19 self::$_user = $factory->user->create_and_get( array( 24 20 'user_login' => 'password-tests' … … 29 25 require_once( ABSPATH . WPINC . '/class-phpass.php' ); 30 26 self::$wp_hasher = new PasswordHash( 8, true ); 31 32 self::commit_transaction(); 33 } 34 35 public static function tearDownAfterClass() { 36 parent::tearDownAfterClass(); 37 27 } 28 29 public static function wpTearDownAfterClass() { 38 30 if ( is_multisite() ) { 39 31 wpmu_delete_user( self::$user_id ); … … 41 33 wp_delete_user( self::$user_id ); 42 34 } 43 44 self::commit_transaction();45 35 } 46 36
Note: See TracChangeset
for help on using the changeset viewer.