Changeset 49033
- Timestamp:
- 09/22/2020 12:32:39 PM (4 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db.php
r49027 r49033 731 731 if ( count( $wpdb->get_results( 'SHOW CREATE PROCEDURE `test_mysqli_flush_sync_procedure`' ) ) < 1 ) { 732 732 $wpdb->suppress_errors( $suppress ); 733 $this->fail( ' procedure could not be created (missing privileges?)' );733 $this->fail( 'Procedure could not be created (missing privileges?)' ); 734 734 } 735 735 -
trunk/tests/phpunit/tests/http/base.php
r49009 r49033 436 436 function test_ssl() { 437 437 if ( ! wp_http_supports( array( 'ssl' ) ) ) { 438 $this->fail( 'This installation of PHP does not support SSL ' );438 $this->fail( 'This installation of PHP does not support SSL.' ); 439 439 } 440 440 -
trunk/tests/phpunit/tests/image/resize.php
r48937 r49033 43 43 44 44 if ( ! is_string( $image ) ) { // WP_Error, stop GLib-GObject-CRITICAL assertion. 45 $this->fail( sprintf( 'No PNG support in the editor engine %s on this system ', $this->editor_engine ) );45 $this->fail( sprintf( 'No PNG support in the editor engine %s on this system.', $this->editor_engine ) ); 46 46 } 47 47 … … 59 59 60 60 if ( ! is_string( $image ) ) { // WP_Error, stop GLib-GObject-CRITICAL assertion. 61 $this->fail( sprintf( 'No GIF support in the editor engine %s on this system ', $this->editor_engine ) );61 $this->fail( sprintf( 'No GIF support in the editor engine %s on this system.', $this->editor_engine ) ); 62 62 } 63 63 -
trunk/tests/phpunit/tests/import/parser.php
r48937 r49033 260 260 break; 261 261 default: 262 $this->fail( 'Unknown postmeta (' . $meta['key'] . ') was parsed out by' . $p);262 $this->fail( sprintf( 'Unknown postmeta (%1$s) was parsed out by %2$s.', $meta['key'], $p ) ); 263 263 } 264 264 $this->assertSame( $value, $meta['value'], $message ); … … 291 291 break; 292 292 default: 293 $this->fail( 'Unknown postmeta (' . $meta['key'] . ') was parsed out by' . $p);293 $this->fail( sprintf( 'Unknown postmeta (%1$s) was parsed out by %2$s.', $meta['key'], $p ) ); 294 294 } 295 295 $this->assertSame( $value, $meta['value'] ); -
trunk/tests/phpunit/tests/theme.php
r48939 r49033 198 198 $latest_default_theme = WP_Theme::get_core_default_theme(); 199 199 if ( ! $latest_default_theme->exists() || 'twenty' !== substr( $latest_default_theme->get_stylesheet(), 0, 6 ) ) { 200 $this->fail( 'No Twenty* series default themes are installed ' );200 $this->fail( 'No Twenty* series default themes are installed.' ); 201 201 } 202 202 $this->assertContains( $latest_default_theme->get_stylesheet(), $this->default_themes );
Note: See TracChangeset
for help on using the changeset viewer.