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/widgets/wpWidgetMediaVideo.php

    r52010 r52248  
    127127        );
    128128        $result   = $widget->update( $expected, $instance );
    129         $this->assertSame( $result, $expected );
     129        $this->assertSame( $expected, $result );
    130130
    131131        // Should filter invalid attachment ID.
     
    143143        );
    144144        $result   = $widget->update( $expected, $instance );
    145         $this->assertSame( $result, $expected );
     145        $this->assertSame( $expected, $result );
    146146
    147147        // Should filter invalid attachment url.
     
    160160        );
    161161        $result   = $widget->update( $expected, $instance );
    162         $this->assertSame( $result, $expected );
     162        $this->assertSame( $expected, $result );
    163163
    164164        // Should filter invalid loop setting.
     
    176176        );
    177177        $result   = $widget->update( $expected, $instance );
    178         $this->assertSame( $result, $expected );
     178        $this->assertSame( $expected, $result );
    179179
    180180        // Should filter invalid attachment title.
     
    192192        );
    193193        $result   = $widget->update( $expected, $instance );
    194         $this->assertSame( $result, $expected );
     194        $this->assertSame( $expected, $result );
    195195
    196196        // Should filter invalid preload setting.
Note: See TracChangeset for help on using the changeset viewer.