- Timestamp:
- 01/24/2024 07:55:53 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n/wpTranslationController.php
r57339 r57344 6 6 */ 7 7 class WP_Translation_Controller_Tests extends WP_UnitTestCase { 8 /**9 * @return void10 */11 8 public function tear_down() { 12 9 remove_all_filters( 'translation_file_format' ); … … 22 19 * @covers WP_Translation_Controller::get_headers 23 20 * @covers WP_Translation_Controller::normalize_header 24 *25 * @return void26 21 */ 27 22 public function test_load_textdomain() { … … 74 69 * @covers WP_Translation_Controller::get_headers 75 70 * @covers WP_Translation_Controller::normalize_header 76 *77 * @return void78 71 */ 79 72 public function test_load_textdomain_existing_override() { … … 94 87 /** 95 88 * @covers ::load_textdomain 96 *97 * @return void98 89 */ 99 90 public function test_load_textdomain_php_files() { … … 108 99 /** 109 100 * @covers ::load_textdomain 110 *111 * @return void112 101 */ 113 102 public function test_load_textdomain_prefers_php_files_by_default() { … … 132 121 /** 133 122 * @covers ::load_textdomain 134 *135 * @return void136 123 */ 137 124 public function test_load_textdomain_reads_php_files_if_filtered_format_is_unsupported() { … … 159 146 /** 160 147 * @covers ::load_textdomain 161 *162 * @return void163 148 */ 164 149 public function test_load_textdomain_existing_translation_is_kept() { … … 184 169 /** 185 170 * @covers ::load_textdomain 186 *187 * @return void188 171 */ 189 172 public function test_load_textdomain_loads_existing_translation() { … … 206 189 /** 207 190 * @covers ::load_textdomain 208 *209 * @return void210 191 */ 211 192 public function test_load_textdomain_loads_existing_translation_mo_files() { … … 237 218 /** 238 219 * @covers ::load_textdomain 239 *240 * @return void241 220 */ 242 221 public function test_load_textdomain_loads_existing_translation_php_files() { … … 269 248 * @covers WP_Translation_Controller::get_headers 270 249 * @covers WP_Translation_Controller::normalize_header 271 *272 * @return void273 250 */ 274 251 public function test_unload_textdomain() { … … 297 274 /** 298 275 * @covers ::unload_textdomain 299 *300 * @return void301 276 */ 302 277 public function test_unload_textdomain_existing_override() { … … 324 299 * @covers ::unload_file 325 300 * @covers ::unload_textdomain 326 *327 * @return void328 301 */ 329 302 public function test_unload_non_existent_files_and_textdomains() { … … 339 312 * @covers ::load_textdomain 340 313 * @covers ::unload_textdomain 341 *342 * @return void343 314 */ 344 315 public function test_switch_to_locale_translations_stay_loaded_default_textdomain() { … … 364 335 * @covers ::unload_textdomain 365 336 * @covers ::change_locale 366 *367 * @return void368 337 */ 369 338 public function test_switch_to_locale_translations_stay_loaded_custom_textdomain() {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)