Changeset 49027
- Timestamp:
- 09/21/2020 02:05:23 PM (4 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db.php
r48996 r49027 93 93 $flag = setlocale( LC_ALL, 'ru_RU.utf8', 'rus', 'fr_FR.utf8', 'fr_FR', 'de_DE.utf8', 'de_DE', 'es_ES.utf8', 'es_ES' ); 94 94 if ( false === $flag ) { 95 $this->markTestSkipped( 'No European locales available for testing ' );95 $this->markTestSkipped( 'No European locales available for testing.' ); 96 96 } 97 97 … … 717 717 global $wpdb; 718 718 if ( ! $wpdb->use_mysqli ) { 719 $this->markTestSkipped( 'mysqli not being used ' );719 $this->markTestSkipped( 'mysqli not being used.' ); 720 720 } 721 721 … … 1049 1049 1050 1050 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.' ); 1052 1052 } 1053 1053 -
trunk/tests/phpunit/tests/db/charset.php
r48937 r49027 514 514 $charset = $wpdb->get_col_charset( $wpdb->posts, 'post_content' ); 515 515 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.' ); 517 517 } 518 518 … … 641 641 $charset = $wpdb->get_col_charset( $wpdb->posts, 'post_content' ); 642 642 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.' ); 644 644 } 645 645 … … 947 947 $charset = $wpdb->get_col_charset( $wpdb->posts, 'post_content' ); 948 948 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.' ); 950 950 } 951 951 … … 1046 1046 $tablename = 'test_cp1251_query_' . rand_str( 5 ); 1047 1047 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." ); 1049 1049 } 1050 1050 … … 1063 1063 $tablename = 'test_cp1251_query_' . rand_str( 5 ); 1064 1064 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." ); 1066 1066 } 1067 1067 -
trunk/tests/phpunit/tests/functions.php
r49025 r49027 1082 1082 function test_wp_raise_memory_limit() { 1083 1083 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.' ); 1085 1085 } 1086 1086 -
trunk/tests/phpunit/tests/l10n/getLocale.php
r46586 r49027 40 40 public function test_network_option_should_be_fallback_on_multisite() { 41 41 if ( ! is_multisite() ) { 42 $this->markTestSkipped( __METHOD__ . ' requires Multisite ' );42 $this->markTestSkipped( __METHOD__ . ' requires Multisite.' ); 43 43 } 44 44 … … 60 60 public function test_option_should_be_respected_on_nonmultisite() { 61 61 if ( is_multisite() ) { 62 $this->markTestSkipped( __METHOD__ . ' does not apply to Multisite ' );62 $this->markTestSkipped( __METHOD__ . ' does not apply to Multisite.' ); 63 63 } 64 64 -
trunk/tests/phpunit/tests/l10n/getUserLocale.php
r46586 r49027 74 74 public function test_user_locale_is_same_across_network() { 75 75 if ( ! is_multisite() ) { 76 $this->markTestSkipped( __METHOD__ . ' requires multisite' );76 $this->markTestSkipped( __METHOD__ . ' requires Multisite.' ); 77 77 } 78 78 -
trunk/tests/phpunit/tests/multisite/siteMeta.php
r48939 r49027 59 59 public function test_add() { 60 60 if ( ! is_site_meta_supported() ) { 61 $this->markTestSkipped( 'Test s only runs with the blogmeta database table installed' );61 $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' ); 62 62 } 63 63 … … 68 68 public function test_add_unique() { 69 69 if ( ! is_site_meta_supported() ) { 70 $this->markTestSkipped( 'Test s only runs with the blogmeta database table installed' );70 $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' ); 71 71 } 72 72 … … 77 77 public function test_delete() { 78 78 if ( ! is_site_meta_supported() ) { 79 $this->markTestSkipped( 'Test s only runs with the blogmeta database table installed' );79 $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' ); 80 80 } 81 81 … … 88 88 public function test_delete_with_invalid_meta_key_should_return_false() { 89 89 if ( ! is_site_meta_supported() ) { 90 $this->markTestSkipped( 'Test s only runs with the blogmeta database table installed' );90 $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' ); 91 91 } 92 92 … … 96 96 public function test_delete_should_respect_meta_value() { 97 97 if ( ! is_site_meta_supported() ) { 98 $this->markTestSkipped( 'Test s only runs with the blogmeta database table installed' );98 $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' ); 99 99 } 100 100 … … 110 110 public function test_get_with_no_key_should_fetch_all_keys() { 111 111 if ( ! is_site_meta_supported() ) { 112 $this->markTestSkipped( 'Test s only runs with the blogmeta database table installed' );112 $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' ); 113 113 } 114 114 … … 127 127 public function test_get_with_key_should_fetch_all_for_key() { 128 128 if ( ! is_site_meta_supported() ) { 129 $this->markTestSkipped( 'Test s only runs with the blogmeta database table installed' );129 $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' ); 130 130 } 131 131 … … 142 142 public function test_get_should_respect_single_true() { 143 143 if ( ! is_site_meta_supported() ) { 144 $this->markTestSkipped( 'Test s only runs with the blogmeta database table installed' );144 $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' ); 145 145 } 146 146 … … 154 154 public function test_update_should_pass_to_add_when_no_value_exists_for_key() { 155 155 if ( ! is_site_meta_supported() ) { 156 $this->markTestSkipped( 'Test s only runs with the blogmeta database table installed' );156 $this->markTestSkipped( 'Test only runs with the blogmeta database table installed.' ); 157 157 } 158 158 … … 167 167 public function test_update_should_return_true_when_updating_existing_value_for_key() { 168 168 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.' ); 170 170 } 171 171 … … 181 181 public function test_delete_by_key() { 182 182 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.' ); 184 184 } 185 185 … … 198 198 public function test_site_meta_should_be_deleted_when_site_is_deleted() { 199 199 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.' ); 201 201 } 202 202 … … 224 224 225 225 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.' ); 227 227 } 228 228 … … 239 239 240 240 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.' ); 242 242 } 243 243 … … 260 260 261 261 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.' ); 263 263 } 264 264 … … 282 282 public function test_add_site_meta_should_bust_get_sites_cache() { 283 283 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.' ); 285 285 } 286 286 … … 324 324 public function test_update_site_meta_should_bust_get_sites_cache() { 325 325 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.' ); 327 327 } 328 328 … … 367 367 public function test_delete_site_meta_should_bust_get_sites_cache() { 368 368 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.' ); 370 370 } 371 371 -
trunk/tests/phpunit/tests/multisite/siteQuery.php
r48988 r49027 884 884 public function test_wp_site_query_meta_query( $query, $expected, $strict ) { 885 885 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.' ); 887 887 } 888 888 -
trunk/tests/phpunit/tests/post.php
r48952 r49027 936 936 937 937 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.' ); 939 939 } 940 940
Note: See TracChangeset
for help on using the changeset viewer.