Changeset 35186 for trunk/tests/phpunit/tests/adminbar.php
- Timestamp:
- 10/15/2015 04:43:37 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/adminbar.php
r34122 r35186 8 8 class Tests_AdminBar extends WP_UnitTestCase { 9 9 10 static function setUpBeforeClass() { 11 WP_UnitTestCase::setUpBeforeClass(); 12 require_once ABSPATH . WPINC . '/class-wp-admin-bar.php'; 13 } 14 15 function setUp() { 16 parent::setUp(); 17 $this->current_user = get_current_user_id(); 18 } 19 20 function tearDown() { 21 wp_set_current_user( $this->current_user ); 22 parent::tearDown(); 10 public static function setUpBeforeClass() { 11 require_once( ABSPATH . WPINC . '/class-wp-admin-bar.php' ); 23 12 } 24 13
Note: See TracChangeset
for help on using the changeset viewer.