Changeset 13314 for trunk/tests/phpunit/testcases/admin/functions.php
- Timestamp:
- 08/13/2022 08:58:51 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/admin/functions.php
r11763 r13314 6 6 protected $old_current_user = 0; 7 7 8 public function set Up() {9 parent::set Up();8 public function set_up() { 9 parent::set_up(); 10 10 $this->old_current_user = get_current_user_id(); 11 11 $this->set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) ); … … 20 20 } 21 21 22 public function tear Down() {23 parent::tear Down();22 public function tear_down() { 23 parent::tear_down(); 24 24 $this->set_current_user( $this->old_current_user ); 25 25 }
Note: See TracChangeset
for help on using the changeset viewer.