mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Tests: Use consistent trailing punctuation in fail() messages.
See #51344. git-svn-id: https://develop.svn.wordpress.org/trunk@49033 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -42,7 +42,7 @@ abstract class WP_Tests_Image_Resize_UnitTestCase extends WP_Image_UnitTestCase
|
||||
$image = $this->resize_helper( DIR_TESTDATA . '/images/test-image.png', 25, 25 );
|
||||
|
||||
if ( ! is_string( $image ) ) { // WP_Error, stop GLib-GObject-CRITICAL assertion.
|
||||
$this->fail( sprintf( 'No PNG support in the editor engine %s on this system', $this->editor_engine ) );
|
||||
$this->fail( sprintf( 'No PNG support in the editor engine %s on this system.', $this->editor_engine ) );
|
||||
}
|
||||
|
||||
$this->assertSame( 'test-image-25x25.png', wp_basename( $image ) );
|
||||
@@ -58,7 +58,7 @@ abstract class WP_Tests_Image_Resize_UnitTestCase extends WP_Image_UnitTestCase
|
||||
$image = $this->resize_helper( DIR_TESTDATA . '/images/test-image.gif', 25, 25 );
|
||||
|
||||
if ( ! is_string( $image ) ) { // WP_Error, stop GLib-GObject-CRITICAL assertion.
|
||||
$this->fail( sprintf( 'No GIF support in the editor engine %s on this system', $this->editor_engine ) );
|
||||
$this->fail( sprintf( 'No GIF support in the editor engine %s on this system.', $this->editor_engine ) );
|
||||
}
|
||||
|
||||
$this->assertSame( 'test-image-25x25.gif', wp_basename( $image ) );
|
||||
|
||||
Reference in New Issue
Block a user