Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/14/2025 07:39:41 PM (7 months ago)
Author:
johnjamesjacoby
Message:

Tools - Build: Upgrade Composer, npm, and add wp-env for PHPUnit.

This commit modernizes the dev environment, bringing it up-to-speed with BuddyPress and others.

Props sirlouen.

In trunk, for 2.7.

Fixes #3610.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/users/template/user.php

    r6868 r7353  
    99class BBP_Tests_Users_Template_User extends BBP_UnitTestCase {
    1010
     11    protected $keymaster_userdata;
     12    protected $keymaster_id;
    1113    protected $old_current_user = 0;
    1214
    13     public function setUp() {
     15    public function setUp(): void {
    1416        parent::setUp();
    1517        $this->old_current_user = get_current_user_id();
     
    2022    }
    2123
    22     public function tearDown() {
     24    public function tearDown(): void {
    2325        parent::tearDown();
    2426        $this->set_current_user( $this->old_current_user );
     
    3840
    3941        // Output.
    40         $this->expectOutputString( $formatted_value );
    41         bbp_user_id( $this->keymaster_id );
     42        $this->expectOutputRegex( '/' . preg_quote($formatted_value, '/') . '/' );
     43        bbp_user_id( $this->keymaster_id );
    4244    }
    4345
Note: See TracChangeset for help on using the changeset viewer.