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


git-svn-id: https://develop.svn.wordpress.org/trunk@52248 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2021-11-25 19:39:31 +00:00
parent b90fc1b6dd
commit 21a7515fdb
15 changed files with 84 additions and 84 deletions
+1 -1
View File
@@ -626,7 +626,7 @@ class Tests_Image_Functions extends WP_UnitTestCase {
$metadata = wp_generate_attachment_metadata( $attachment_id, $test_file );
$this->assertArrayHasKey( 'test-size', $metadata['sizes'], 'The `test-size` was not added to the metadata.' );
$this->assertSame( $metadata['sizes']['test-size'], $expected );
$this->assertSame( $expected, $metadata['sizes']['test-size'] );
remove_image_size( 'test-size' );
remove_filter( 'fallback_intermediate_image_sizes', array( $this, 'filter_fallback_intermediate_image_sizes' ), 10 );