Make WordPress Core

Changeset 49027


Ignore:
Timestamp:
09/21/2020 02:05:23 PM (6 years ago)
Author:
SergeyBiryukov
Message:

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

See #51344.

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

Legend:

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

    r48996 r49027  
    9393                $flag = setlocale( LC_ALL, 'ru_RU.utf8', 'rus', 'fr_FR.utf8', 'fr_FR', 'de_DE.utf8', 'de_DE', 'es_ES.utf8', 'es_ES' );
    9494                if ( false === $flag ) {
    95                         $this->markTestSkipped( 'No European locales available for testing' );
     95                        $this->markTestSkipped( 'No European locales available for testing.' );
    9696                }
    9797
     
    717717                global $wpdb;
    718718                if ( ! $wpdb->use_mysqli ) {
    719                         $this->markTestSkipped( 'mysqli not being used' );
     719                        $this->markTestSkipped( 'mysqli not being used.' );
    720720                }
    721721
     
    10491049
    10501050                if ( ! in_array( $expected_charset, array( 'utf8', 'utf8mb4', 'latin1' ), true ) ) {
    1051                         $this->markTestSkipped( 'This test only works with utf8, utf8mb4 or latin1 character sets' );
     1051                        $this->markTestSkipped( 'This test only works with utf8, utf8mb4 or latin1 character sets.' );
    10521052                }
    10531053
  • trunk/tests/phpunit/tests/db/charset.php

    r48937 r49027  
    514514                $charset = $wpdb->get_col_charset( $wpdb->posts, 'post_content' );
    515515                if ( 'utf8' !== $charset && 'utf8mb4' !== $charset ) {
    516                         $this->markTestSkipped( 'This test requires a utf8 character set' );
     516                        $this->markTestSkipped( 'This test requires a utf8 character set.' );
    517517                }
    518518
     
    641641                $charset = $wpdb->get_col_charset( $wpdb->posts, 'post_content' );
    642642                if ( 'utf8' !== $charset && 'utf8mb4' !== $charset ) {
    643                         $this->markTestSkipped( 'This test requires a utf8 character set' );
     643                        $this->markTestSkipped( 'This test requires a utf8 character set.' );
    644644                }
    645645
     
    947947                $charset = $wpdb->get_col_charset( $wpdb->posts, 'post_content' );
    948948                if ( 'utf8' !== $charset && 'utf8mb4' !== $charset ) {
    949                         $this->markTestSkipped( 'This test requires a utf8 character set' );
     949                        $this->markTestSkipped( 'This test requires a utf8 character set.' );
    950950                }
    951951
     
    10461046                $tablename = 'test_cp1251_query_' . rand_str( 5 );
    10471047                if ( ! self::$_wpdb->query( "CREATE TABLE $tablename ( a VARCHAR(50) ) DEFAULT CHARSET 'cp1251'" ) ) {
    1048                         $this->markTestSkipped( "Test requires the 'cp1251' charset" );
     1048                        $this->markTestSkipped( "Test requires the 'cp1251' charset." );
    10491049                }
    10501050
     
    10631063                $tablename = 'test_cp1251_query_' . rand_str( 5 );
    10641064                if ( ! self::$_wpdb->query( "CREATE TABLE $tablename ( a VARCHAR(50) ) DEFAULT CHARSET 'cp1251'" ) ) {
    1065                         $this->markTestSkipped( "Test requires the 'cp1251' charset" );
     1065                        $this->markTestSkipped( "Test requires the 'cp1251' charset." );
    10661066                }
    10671067
  • trunk/tests/phpunit/tests/functions.php

    r49025 r49027  
    10821082        function test_wp_raise_memory_limit() {
    10831083                if ( -1 !== WP_MAX_MEMORY_LIMIT ) {
    1084                         $this->markTestSkipped( 'WP_MAX_MEMORY_LIMIT should be set to -1' );
     1084                        $this->markTestSkipped( 'WP_MAX_MEMORY_LIMIT should be set to -1.' );
    10851085                }
    10861086
  • trunk/tests/phpunit/tests/l10n/getLocale.php

    r46586 r49027  
    4040        public function test_network_option_should_be_fallback_on_multisite() {
    4141                if ( ! is_multisite() ) {
    42                         $this->markTestSkipped( __METHOD__ . ' requires Multisite' );
     42                        $this->markTestSkipped( __METHOD__ . ' requires Multisite.' );
    4343                }
    4444
     
    6060        public function test_option_should_be_respected_on_nonmultisite() {
    6161                if ( is_multisite() ) {
    62                         $this->markTestSkipped( __METHOD__ . ' does not apply to Multisite' );
     62                        $this->markTestSkipped( __METHOD__ . ' does not apply to Multisite.' );
    6363                }
    6464
  • trunk/tests/phpunit/tests/l10n/getUserLocale.php

    r46586 r49027  
    7474        public function test_user_locale_is_same_across_network() {
    7575                if ( ! is_multisite() ) {
    76                         $this->markTestSkipped( __METHOD__ . ' requires multisite' );
     76                        $this->markTestSkipped( __METHOD__ . ' requires Multisite.' );
    7777                }
    7878
  • trunk/tests/phpunit/tests/multisite/siteMeta.php

    r48939 r49027  
    5959                public function test_add() {
    6060                        if ( ! is_site_meta_supported() ) {
    61                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     61                                $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' );
    6262                        }
    6363
     
    6868                public function test_add_unique() {
    6969                        if ( ! is_site_meta_supported() ) {
    70                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     70                                $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' );
    7171                        }
    7272
     
    7777                public function test_delete() {
    7878                        if ( ! is_site_meta_supported() ) {
    79                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     79                                $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' );
    8080                        }
    8181
     
    8888                public function test_delete_with_invalid_meta_key_should_return_false() {
    8989                        if ( ! is_site_meta_supported() ) {
    90                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     90                                $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' );
    9191                        }
    9292
     
    9696                public function test_delete_should_respect_meta_value() {
    9797                        if ( ! is_site_meta_supported() ) {
    98                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     98                                $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' );
    9999                        }
    100100
     
    110110                public function test_get_with_no_key_should_fetch_all_keys() {
    111111                        if ( ! is_site_meta_supported() ) {
    112                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     112                                $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' );
    113113                        }
    114114
     
    127127                public function test_get_with_key_should_fetch_all_for_key() {
    128128                        if ( ! is_site_meta_supported() ) {
    129                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     129                                $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' );
    130130                        }
    131131
     
    142142                public function test_get_should_respect_single_true() {
    143143                        if ( ! is_site_meta_supported() ) {
    144                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     144                                $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' );
    145145                        }
    146146
     
    154154                public function test_update_should_pass_to_add_when_no_value_exists_for_key() {
    155155                        if ( ! is_site_meta_supported() ) {
    156                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     156                                $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' );
    157157                        }
    158158
     
    167167                public function test_update_should_return_true_when_updating_existing_value_for_key() {
    168168                        if ( ! is_site_meta_supported() ) {
    169                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     169                                $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed.' );
    170170                        }
    171171
     
    181181                public function test_delete_by_key() {
    182182                        if ( ! is_site_meta_supported() ) {
    183                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     183                                $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed.' );
    184184                        }
    185185
     
    198198                public function test_site_meta_should_be_deleted_when_site_is_deleted() {
    199199                        if ( ! is_site_meta_supported() ) {
    200                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     200                                $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed.' );
    201201                        }
    202202
     
    224224
    225225                        if ( ! is_site_meta_supported() ) {
    226                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     226                                $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed.' );
    227227                        }
    228228
     
    239239
    240240                        if ( ! is_site_meta_supported() ) {
    241                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     241                                $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed.' );
    242242                        }
    243243
     
    260260
    261261                        if ( ! is_site_meta_supported() ) {
    262                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     262                                $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed.' );
    263263                        }
    264264
     
    282282                public function test_add_site_meta_should_bust_get_sites_cache() {
    283283                        if ( ! is_site_meta_supported() ) {
    284                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     284                                $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed.' );
    285285                        }
    286286
     
    324324                public function test_update_site_meta_should_bust_get_sites_cache() {
    325325                        if ( ! is_site_meta_supported() ) {
    326                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     326                                $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed.' );
    327327                        }
    328328
     
    367367                public function test_delete_site_meta_should_bust_get_sites_cache() {
    368368                        if ( ! is_site_meta_supported() ) {
    369                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     369                                $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed.' );
    370370                        }
    371371
  • trunk/tests/phpunit/tests/multisite/siteQuery.php

    r48988 r49027  
    884884                public function test_wp_site_query_meta_query( $query, $expected, $strict ) {
    885885                        if ( ! is_site_meta_supported() ) {
    886                                 $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed' );
     886                                $this->markTestSkipped( 'Tests only runs with the blogmeta database table installed.' );
    887887                        }
    888888
  • trunk/tests/phpunit/tests/post.php

    r48952 r49027  
    936936
    937937                if ( 'utf8' !== $wpdb->get_col_charset( $wpdb->posts, 'post_title' ) ) {
    938                         $this->markTestSkipped( 'This test is only useful with the utf8 character set' );
     938                        $this->markTestSkipped( 'This test is only useful with the utf8 character set.' );
    939939                }
    940940
Note: See TracChangeset for help on using the changeset viewer.