Changeset 53866 for trunk/tests/phpunit/tests/l10n/loadTextdomain.php
- Timestamp:
- 08/08/2022 11:39:06 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n/loadTextdomain.php
r52010 r53866 33 33 } 34 34 35 /** 36 * @covers ::is_textdomain_loaded 37 */ 35 38 public function test_is_textdomain_loaded() { 36 39 $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) ); 37 40 } 38 41 42 /** 43 * @covers ::unload_textdomain 44 */ 39 45 public function test_unload_textdomain() { 40 46 $this->assertFalse( unload_textdomain( 'wp-tests-domain' ) ); 41 47 } 42 48 49 /** 50 * @covers ::unload_textdomain 51 */ 43 52 public function test_load_textdomain() { 44 53 $loaded = load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/pomo/simple.mo' ); … … 49 58 } 50 59 60 /** 61 * @covers ::unload_textdomain 62 */ 51 63 public function test_is_textdomain_loaded_after_loading() { 52 64 load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/pomo/simple.mo' ); … … 59 71 } 60 72 73 /** 74 * @covers ::unload_textdomain 75 */ 61 76 public function test_unload_textdomain_after_loading() { 62 77 load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/pomo/simple.mo' ); … … 65 80 } 66 81 82 /** 83 * @covers ::is_textdomain_loaded 84 */ 67 85 public function test_is_textdomain_loaded_after_unloading() { 68 86 load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/pomo/simple.mo' ); … … 75 93 /** 76 94 * @ticket 21319 95 * 96 * @covers ::load_textdomain 77 97 */ 78 98 public function test_load_textdomain_non_existent_file() { … … 82 102 /** 83 103 * @ticket 21319 104 * 105 * @covers ::is_textdomain_loaded 84 106 */ 85 107 public function test_is_textdomain_loaded_non_existent_file() { … … 91 113 /** 92 114 * @ticket 21319 115 * 116 * @covers ::get_translations_for_domain 93 117 */ 94 118 public function test_get_translations_for_domain_non_existent_file() { … … 100 124 /** 101 125 * @ticket 21319 126 * 127 * @covers ::unload_textdomain 102 128 */ 103 129 public function test_unload_textdomain_non_existent_file() { … … 109 135 /** 110 136 * @ticket 21319 137 * 138 * @covers ::is_textdomain_loaded 111 139 */ 112 140 public function test_is_textdomain_is_not_loaded_after_gettext_call_with_no_translations() { … … 116 144 } 117 145 146 /** 147 * @covers ::load_textdomain 148 */ 118 149 public function test_override_load_textdomain_noop() { 119 150 add_filter( 'override_load_textdomain', '__return_true' ); … … 125 156 } 126 157 158 /** 159 * @covers ::load_textdomain 160 */ 127 161 public function test_override_load_textdomain_non_existent_mofile() { 128 162 add_filter( 'override_load_textdomain', array( $this, 'override_load_textdomain_filter' ), 10, 3 ); … … 139 173 } 140 174 175 /** 176 * @covers ::load_textdomain 177 */ 141 178 public function test_override_load_textdomain_custom_mofile() { 142 179 add_filter( 'override_load_textdomain', array( $this, 'override_load_textdomain_filter' ), 10, 3 ); … … 181 218 } 182 219 220 /** 221 * @covers ::load_muplugin_textdomain 222 */ 183 223 public function test_load_muplugin_textdomain_site_locale() { 184 224 load_muplugin_textdomain( 'wp-tests-domain' ); … … 189 229 /** 190 230 * @ticket 38485 231 * 232 * @covers ::load_muplugin_textdomain 191 233 */ 192 234 public function test_load_muplugin_textdomain_user_locale() { … … 199 241 } 200 242 243 /** 244 * @covers ::load_plugin_textdomain 245 */ 201 246 public function test_load_plugin_textdomain_site_locale() { 202 247 load_plugin_textdomain( 'wp-tests-domain' ); … … 207 252 /** 208 253 * @ticket 38485 254 * 255 * @covers ::load_plugin_textdomain 209 256 */ 210 257 public function test_load_plugin_textdomain_user_locale() { … … 217 264 } 218 265 266 /** 267 * @covers ::load_theme_textdomain 268 */ 219 269 public function test_load_theme_textdomain_site_locale() { 220 270 load_theme_textdomain( 'wp-tests-domain' ); … … 225 275 /** 226 276 * @ticket 38485 277 * 278 * @covers ::load_theme_textdomain 227 279 */ 228 280 public function test_load_theme_textdomain_user_locale() {
Note: See TracChangeset
for help on using the changeset viewer.