Make WordPress Core


Ignore:
Timestamp:
11/25/2021 07:39:31 PM (5 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/widgets/wpWidgetMedia.php

    r52010 r52248  
    245245                );
    246246                $result   = $widget->update( $expected, $instance );
    247                 $this->assertSame( $result, $expected );
     247                $this->assertSame( $expected, $result );
    248248
    249249                // Should filter invalid attachment ID.
     
    261261                );
    262262                $result   = $widget->update( $expected, $instance );
    263                 $this->assertSame( $result, $expected );
     263                $this->assertSame( $expected, $result );
    264264
    265265                // Should filter invalid attachment url.
     
    277277                );
    278278                $result   = $widget->update( $expected, $instance );
    279                 $this->assertSame( $result, $expected );
     279                $this->assertSame( $expected, $result );
    280280
    281281                // Should filter invalid attachment title.
Note: See TracChangeset for help on using the changeset viewer.