Make WordPress Core

Changeset 49033


Ignore:
Timestamp:
09/22/2020 12:32:39 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Tests: Use consistent trailing punctuation in fail() messages.

See #51344.

Location:
trunk/tests/phpunit/tests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/db.php

    r49027 r49033  
    731731                if ( count( $wpdb->get_results( 'SHOW CREATE PROCEDURE `test_mysqli_flush_sync_procedure`' ) ) < 1 ) {
    732732                        $wpdb->suppress_errors( $suppress );
    733                         $this->fail( 'procedure could not be created (missing privileges?)' );
     733                        $this->fail( 'Procedure could not be created (missing privileges?)' );
    734734                }
    735735
  • trunk/tests/phpunit/tests/http/base.php

    r49009 r49033  
    436436        function test_ssl() {
    437437                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.' );
    439439                }
    440440
  • trunk/tests/phpunit/tests/image/resize.php

    r48937 r49033  
    4343
    4444                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 ) );
    4646                }
    4747
    … …  
    5959
    6060                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 ) );
    6262                }
    6363
  • trunk/tests/phpunit/tests/import/parser.php

    r48937 r49033  
    260260                                                break;
    261261                                        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 ) );
    263263                                }
    264264                                $this->assertSame( $value, $meta['value'], $message );
    … …  
    291291                                        break;
    292292                                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 ) );
    294294                        }
    295295                        $this->assertSame( $value, $meta['value'] );
  • trunk/tests/phpunit/tests/theme.php

    r48939 r49033  
    198198                $latest_default_theme = WP_Theme::get_core_default_theme();
    199199                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.' );
    201201                }
    202202                $this->assertContains( $latest_default_theme->get_stylesheet(), $this->default_themes );
Note: See TracChangeset for help on using the changeset viewer.