WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/25/2021 07:39:31 PM (2 months 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/wpWidgetMediaAudio.php

    r52010 r52248  
    126126        );
    127127        $result   = $widget->update( $expected, $instance );
    128         $this->assertSame( $result, $expected );
     128        $this->assertSame( $expected, $result );
    129129
    130130        // Should filter invalid attachment ID.
     
    142142        );
    143143        $result   = $widget->update( $expected, $instance );
    144         $this->assertSame( $result, $expected );
     144        $this->assertSame( $expected, $result );
    145145
    146146        // Should filter invalid attachment url.
     
    159159        );
    160160        $result   = $widget->update( $expected, $instance );
    161         $this->assertSame( $result, $expected );
     161        $this->assertSame( $expected, $result );
    162162
    163163        // Should filter invalid loop setting.
     
    175175        );
    176176        $result   = $widget->update( $expected, $instance );
    177         $this->assertSame( $result, $expected );
     177        $this->assertSame( $expected, $result );
    178178
    179179        // Should filter invalid attachment title.
     
    191191        );
    192192        $result   = $widget->update( $expected, $instance );
    193         $this->assertSame( $result, $expected );
     193        $this->assertSame( $expected, $result );
    194194
    195195        // Should filter invalid preload setting.
Note: See TracChangeset for help on using the changeset viewer.