@@ -27,12 +27,6 @@ protected static function setup_extensions()
2727 return ['phpbb/boardannouncements ' ];
2828 }
2929
30- protected function setUp (): void
31- {
32- parent ::setUp ();
33- $ this ->add_lang_ext ('phpbb/boardannouncements ' , ['boardannouncements_acp ' , 'info_acp_board_announcements ' ]);
34- }
35-
3630 /**
3731 * Test board announcement ACP page and save settings
3832 */
@@ -41,6 +35,8 @@ public function test_set_acp_settings()
4135 $ this ->login ();
4236 $ this ->admin_login ();
4337
38+ $ this ->add_lang_ext ('phpbb/boardannouncements ' , ['boardannouncements_acp ' , 'info_acp_board_announcements ' ]);
39+
4440 $ crawler = self ::request ('GET ' , $ this ->get_acp_page ());
4541 $ this ->assertContainsLang ('BOARD_ANNOUNCEMENTS_ENABLE_ALL ' , $ crawler ->text ());
4642
@@ -159,6 +155,8 @@ public function test_acp_editing()
159155 $ this ->login ();
160156 $ this ->admin_login ();
161157
158+ $ this ->add_lang_ext ('phpbb/boardannouncements ' , ['boardannouncements_acp ' , 'info_acp_board_announcements ' ]);
159+
162160 // Test editing announcement and preview works
163161 $ crawler = self ::request ('GET ' , $ this ->get_acp_page ('add ' , 1 ));
164162 $ this ->assertContainsLang ('BOARD_ANNOUNCEMENTS_PREVIEW ' , $ crawler ->text ());
@@ -189,6 +187,8 @@ public function test_locations()
189187 $ this ->login ();
190188 $ this ->admin_login ();
191189
190+ $ this ->add_lang_ext ('phpbb/boardannouncements ' , ['boardannouncements_acp ' , 'info_acp_board_announcements ' ]);
191+
192192 // show everywhere
193193 $ everywhere_id = $ this ->create_announcement ([
194194 'board_announcements_locations ' => [],
0 commit comments