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/db/charset.php

    r52010 r52248  
    768768
    769769        $charset = self::$_wpdb->get_table_charset( $table );
    770         $this->assertSame( $charset, $expected_charset );
     770        $this->assertSame( $expected_charset, $charset );
    771771
    772772        $charset = self::$_wpdb->get_table_charset( strtoupper( $table ) );
    773         $this->assertSame( $charset, $expected_charset );
     773        $this->assertSame( $expected_charset, $charset );
    774774
    775775        self::$_wpdb->query( $drop );
Note: See TracChangeset for help on using the changeset viewer.