Changeset 7353 for trunk/tests/phpunit/testcases/users/template/user.php
- Timestamp:
- 11/14/2025 07:39:41 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/users/template/user.php
r6868 r7353 9 9 class BBP_Tests_Users_Template_User extends BBP_UnitTestCase { 10 10 11 protected $keymaster_userdata; 12 protected $keymaster_id; 11 13 protected $old_current_user = 0; 12 14 13 public function setUp() {15 public function setUp(): void { 14 16 parent::setUp(); 15 17 $this->old_current_user = get_current_user_id(); … … 20 22 } 21 23 22 public function tearDown() {24 public function tearDown(): void { 23 25 parent::tearDown(); 24 26 $this->set_current_user( $this->old_current_user ); … … 38 40 39 41 // Output. 40 $this->expectOutput String( $formatted_value);41 bbp_user_id( $this->keymaster_id );42 $this->expectOutputRegex( '/' . preg_quote($formatted_value, '/') . '/' ); 43 bbp_user_id( $this->keymaster_id ); 42 44 } 43 45
Note: See TracChangeset
for help on using the changeset viewer.