55 * @group i18n
66 */
77class WP_Translation_Controller_Tests extends WP_UnitTestCase {
8- /**
9- * @return void
10- */
118 public function tear_down () {
129 remove_all_filters ( 'translation_file_format ' );
1310 unload_textdomain ( 'wp-tests-domain ' );
@@ -21,8 +18,6 @@ public function tear_down() {
2118 * @covers WP_Translation_Controller::get_entries
2219 * @covers WP_Translation_Controller::get_headers
2320 * @covers WP_Translation_Controller::normalize_header
24- *
25- * @return void
2621 */
2722 public function test_load_textdomain () {
2823 global $ l10n ;
@@ -73,8 +68,6 @@ public function test_load_textdomain() {
7368 * @covers WP_Translation_Controller::get_entries
7469 * @covers WP_Translation_Controller::get_headers
7570 * @covers WP_Translation_Controller::normalize_header
76- *
77- * @return void
7871 */
7972 public function test_load_textdomain_existing_override () {
8073 add_filter ( 'override_load_textdomain ' , '__return_true ' );
@@ -93,8 +86,6 @@ public function test_load_textdomain_existing_override() {
9386
9487 /**
9588 * @covers ::load_textdomain
96- *
97- * @return void
9889 */
9990 public function test_load_textdomain_php_files () {
10091 $ load_php_successful = load_textdomain ( 'wp-tests-domain ' , DIR_TESTDATA . '/pomo/simple.l10n.php ' );
@@ -107,8 +98,6 @@ public function test_load_textdomain_php_files() {
10798
10899 /**
109100 * @covers ::load_textdomain
110- *
111- * @return void
112101 */
113102 public function test_load_textdomain_prefers_php_files_by_default () {
114103 $ load_successful = load_textdomain ( 'wp-tests-domain ' , DIR_TESTDATA . '/pomo/simple.mo ' );
@@ -131,8 +120,6 @@ public function test_load_textdomain_prefers_php_files_by_default() {
131120
132121 /**
133122 * @covers ::load_textdomain
134- *
135- * @return void
136123 */
137124 public function test_load_textdomain_reads_php_files_if_filtered_format_is_unsupported () {
138125 add_filter (
@@ -158,8 +145,6 @@ static function () {
158145
159146 /**
160147 * @covers ::load_textdomain
161- *
162- * @return void
163148 */
164149 public function test_load_textdomain_existing_translation_is_kept () {
165150 global $ l10n ;
@@ -183,8 +168,6 @@ public function test_load_textdomain_existing_translation_is_kept() {
183168
184169 /**
185170 * @covers ::load_textdomain
186- *
187- * @return void
188171 */
189172 public function test_load_textdomain_loads_existing_translation () {
190173 global $ l10n ;
@@ -205,8 +188,6 @@ public function test_load_textdomain_loads_existing_translation() {
205188
206189 /**
207190 * @covers ::load_textdomain
208- *
209- * @return void
210191 */
211192 public function test_load_textdomain_loads_existing_translation_mo_files () {
212193 global $ l10n ;
@@ -236,8 +217,6 @@ static function () {
236217
237218 /**
238219 * @covers ::load_textdomain
239- *
240- * @return void
241220 */
242221 public function test_load_textdomain_loads_existing_translation_php_files () {
243222 global $ l10n ;
@@ -268,8 +247,6 @@ public function test_load_textdomain_loads_existing_translation_php_files() {
268247 * @covers WP_Translation_Controller::get_entries
269248 * @covers WP_Translation_Controller::get_headers
270249 * @covers WP_Translation_Controller::normalize_header
271- *
272- * @return void
273250 */
274251 public function test_unload_textdomain () {
275252 global $ l10n ;
@@ -296,8 +273,6 @@ public function test_unload_textdomain() {
296273
297274 /**
298275 * @covers ::unload_textdomain
299- *
300- * @return void
301276 */
302277 public function test_unload_textdomain_existing_override () {
303278 add_filter ( 'override_unload_textdomain ' , '__return_true ' );
@@ -323,8 +298,6 @@ public function test_unload_textdomain_existing_override() {
323298 /**
324299 * @covers ::unload_file
325300 * @covers ::unload_textdomain
326- *
327- * @return void
328301 */
329302 public function test_unload_non_existent_files_and_textdomains () {
330303 $ controller = new WP_Translation_Controller ();
@@ -338,8 +311,6 @@ public function test_unload_non_existent_files_and_textdomains() {
338311 /**
339312 * @covers ::load_textdomain
340313 * @covers ::unload_textdomain
341- *
342- * @return void
343314 */
344315 public function test_switch_to_locale_translations_stay_loaded_default_textdomain () {
345316 switch_to_locale ( 'es_ES ' );
@@ -363,8 +334,6 @@ public function test_switch_to_locale_translations_stay_loaded_default_textdomai
363334 * @covers ::load_textdomain
364335 * @covers ::unload_textdomain
365336 * @covers ::change_locale
366- *
367- * @return void
368337 */
369338 public function test_switch_to_locale_translations_stay_loaded_custom_textdomain () {
370339 $ this ->assertSame ( 'en_US ' , WP_Translation_Controller::instance ()->get_locale () );
0 commit comments