1616 */
1717abstract class type_test_case extends base
1818{
19+ public static function check_condition_test_data (): array
20+ {
21+ return [];
22+ }
23+
1924 /**
2025 * Test the condition type's check method
2126 *
2227 * @dataProvider check_condition_test_data
2328 */
24- public function test_check_condition ($ user_data , $ expected , $ default , $ options )
29+ public function test_check_condition ($ user_data , $ expected , $ default , $ options ): void
2530 {
2631 // Prepare the users data for checking
2732 foreach ($ user_data as $ user_id => $ data )
@@ -56,7 +61,7 @@ public function test_check_condition($user_data, $expected, $default, $options)
5661 *
5762 * @dataProvider check_condition_test_data
5863 */
59- public function test_check_condition_with_users ($ user_data , $ expected , $ default )
64+ public function test_check_condition_with_users ($ user_data , $ expected , $ default ): void
6065 {
6166 // Update the users regdate timestamp
6267 foreach ($ user_data as $ user_id => $ data )
@@ -93,7 +98,7 @@ public function test_check_condition_with_users($user_data, $expected, $default)
9398 * @param array $user_ids
9499 * @return array Array of user ids and their default group ids
95100 */
96- public function helper_default_groups ($ user_ids )
101+ public function helper_default_groups (array $ user_ids ): array
97102 {
98103 $ sql = 'SELECT user_id, group_id
99104 FROM phpbb_users
@@ -116,5 +121,5 @@ public function helper_default_groups($user_ids)
116121 * @param int $user_id
117122 * @param int $data
118123 */
119- abstract public function helper_update_user_data ($ user_id , $ data );
124+ abstract public function helper_update_user_data (int $ user_id , int $ data );
120125}
0 commit comments