mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 15:47:05 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user