1616 */
1717class phpbb_functional_extension_template_event_order_test extends phpbb_functional_test_case
1818{
19- static private $ helper ;
19+ private static $ helper ;
2020
21- static protected $ fixtures = [
21+ protected static $ fixtures = [
2222 './ ' ,
2323 ];
2424
25- static public function setUpBeforeClass (): void
25+ public static function setUpBeforeClass (): void
2626 {
2727 parent ::setUpBeforeClass ();
2828
2929 self ::$ helper = new phpbb_test_case_helpers (__CLASS__ );
3030 self ::$ helper ->copy_ext_fixtures (__DIR__ . '/fixtures/ext/ ' , self ::$ fixtures );
31+
32+ self ::install_ext ('foo/bar ' );
33+ self ::install_ext ('foo/foo ' );
3134 }
3235
33- static public function tearDownAfterClass (): void
36+ public static function tearDownAfterClass (): void
3437 {
3538 parent ::tearDownAfterClass ();
3639
40+ self ::uninstall_ext ('foo/bar ' );
41+ self ::uninstall_ext ('foo/foo ' );
3742 self ::$ helper ->restore_original_ext_dir ();
3843 }
3944
@@ -44,21 +49,6 @@ protected function setUp(): void
4449 $ this ->purge_cache ();
4550 }
4651
47- protected function tearDown (): void
48- {
49- if (self ::$ tests_count == 1 )
50- {
51- $ this ->uninstall_ext ('foo/bar ' );
52- $ this ->uninstall_ext ('foo/foo ' );
53- }
54-
55- parent ::tearDown ();
56- }
57-
58- protected static function setup_extensions ()
59- {
60- return self ::$ tests_count == self ::$ tests_number ? ['foo/bar ' , 'foo/foo ' ] : [];
61- }
6252
6353 /**
6454 * Check extensions template event listener prioritizing
0 commit comments