mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-25 17:41:25 +02:00
[ticket/17535] Convert config files, make data providers static
PHPBB-17535
This commit is contained in:
@@ -55,7 +55,7 @@ class ban_manager_test extends \phpbb_session_test_case
|
||||
$this->phpbb_container = $phpbb_container;
|
||||
}
|
||||
|
||||
public function data_check_ban(): array
|
||||
public static function data_check_ban(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
@@ -170,7 +170,7 @@ class ban_manager_test extends \phpbb_session_test_case
|
||||
$this->assertEquals($expected, $this->ban_manager->check($user_data));
|
||||
}
|
||||
|
||||
public function data_get_bans(): array
|
||||
public static function data_get_bans(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
@@ -298,7 +298,7 @@ class ban_manager_test extends \phpbb_session_test_case
|
||||
$this->assertEquals($expected, $actual);
|
||||
}
|
||||
|
||||
public function data_get_ban_end(): array
|
||||
public static function data_get_ban_end(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
@@ -457,7 +457,7 @@ class ban_manager_test extends \phpbb_session_test_case
|
||||
));
|
||||
}
|
||||
|
||||
public function data_test_ban(): array
|
||||
public static function data_test_ban(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
@@ -629,7 +629,7 @@ class ban_manager_test extends \phpbb_session_test_case
|
||||
);
|
||||
}
|
||||
|
||||
public function data_test_unban(): array
|
||||
public static function data_test_unban(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
@@ -700,7 +700,7 @@ class ban_manager_test extends \phpbb_session_test_case
|
||||
$this->assertFalse($check->invoke($ban_type_ip, [], []));
|
||||
}
|
||||
|
||||
public function data_get_ban_message(): array
|
||||
public static function data_get_ban_message(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
|
Reference in New Issue
Block a user