Make WordPress Core


Ignore:
Timestamp:
11/25/2021 07:39:31 PM (3 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Correct the order and naming of expected and actual values in various tests.

This corrects the order of the parameters when used in assertions so if/when they fail the failure message is correct.

See #53363

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/l10n/wpLocaleSwitcher.php

    r51568 r52248  
    373373        switch_to_locale( $site_locale );
    374374
    375         $expected = i18n_plugin_test();
     375        $actual = i18n_plugin_test();
    376376
    377377        restore_current_locale();
     
    380380
    381381        $this->assertSame( 'en_US', get_locale() );
    382         $this->assertSame( 'This is a dummy plugin', $expected );
     382        $this->assertSame( 'This is a dummy plugin', $actual );
    383383    }
    384384
Note: See TracChangeset for help on using the changeset viewer.