mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-21 16:01:40 +02:00
[ticket/17535] Convert config files, make data providers static
PHPBB-17535
This commit is contained in:
@@ -51,7 +51,7 @@ class phpbb_dbal_migrator_tool_module_test extends phpbb_database_test_case
|
||||
$this->tool = new \phpbb\db\migration\tool\module($this->db, $this->user, $module_manager, 'phpbb_modules');
|
||||
}
|
||||
|
||||
public function exists_data_acp()
|
||||
public static function exists_data_acp()
|
||||
{
|
||||
return array(
|
||||
// Test the existing category
|
||||
@@ -184,7 +184,7 @@ class phpbb_dbal_migrator_tool_module_test extends phpbb_database_test_case
|
||||
$this->assertEquals($expected, $this->tool->exists('acp', $parent, $module, $lazy));
|
||||
}
|
||||
|
||||
public function exists_data_ucp()
|
||||
public static function exists_data_ucp()
|
||||
{
|
||||
return array(
|
||||
// Test the existing category
|
||||
|
@@ -102,7 +102,7 @@ class phpbb_dbal_migrator_tool_permission_role_test extends phpbb_database_test_
|
||||
$this->auth_admin = new \auth_admin();
|
||||
}
|
||||
|
||||
public function data_test_new_role_exists()
|
||||
public static function data_test_new_role_exists()
|
||||
{
|
||||
return [
|
||||
['ROLE_ADMIN_NEW', true],
|
||||
@@ -119,7 +119,7 @@ class phpbb_dbal_migrator_tool_permission_role_test extends phpbb_database_test_
|
||||
$this->assertEquals($expected, (bool) $this->tool->role_exists($role_name));
|
||||
}
|
||||
|
||||
public function data_test_permission_assign_new_roles()
|
||||
public static function data_test_permission_assign_new_roles()
|
||||
{
|
||||
return [
|
||||
[
|
||||
|
@@ -45,7 +45,7 @@ class phpbb_dbal_migrator_tool_permission_test extends phpbb_database_test_case
|
||||
$this->tool = new \phpbb\db\migration\tool\permission($this->db, $this->cache, $this->auth, $phpbb_root_path, $phpEx);
|
||||
}
|
||||
|
||||
public function exists_data()
|
||||
public static function exists_data()
|
||||
{
|
||||
return array(
|
||||
array(
|
||||
@@ -170,7 +170,7 @@ class phpbb_dbal_migrator_tool_permission_test extends phpbb_database_test_case
|
||||
$this->assertFalse($this->tool->exists('global_test', true));
|
||||
}
|
||||
|
||||
public function data_test_permission_set()
|
||||
public static function data_test_permission_set()
|
||||
{
|
||||
return array(
|
||||
array(
|
||||
@@ -226,7 +226,7 @@ class phpbb_dbal_migrator_tool_permission_test extends phpbb_database_test_case
|
||||
}
|
||||
}
|
||||
|
||||
public function data_test_permission_role_exists()
|
||||
public static function data_test_permission_role_exists()
|
||||
{
|
||||
return array(
|
||||
array('ROLE_MOD_FULL', true),
|
||||
|
@@ -18,7 +18,7 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
|
||||
return $this->createXMLDataSet(__DIR__.'/fixtures/three_users.xml');
|
||||
}
|
||||
|
||||
public function return_on_error_select_data()
|
||||
public static function return_on_error_select_data()
|
||||
{
|
||||
return array(
|
||||
array('phpbb_users', "username_clean = 'bertie'", array(array('username_clean' => 'bertie'))),
|
||||
@@ -45,7 +45,7 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
|
||||
$this->assertEquals($expected, $db->sql_fetchrowset($result));
|
||||
}
|
||||
|
||||
public function fetchrow_data()
|
||||
public static function fetchrow_data()
|
||||
{
|
||||
return array(
|
||||
array('', array(array('username_clean' => 'barfoo'),
|
||||
@@ -96,7 +96,7 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
|
||||
$db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
public function fetchfield_data()
|
||||
public static function fetchfield_data()
|
||||
{
|
||||
return array(
|
||||
array('', array('barfoo', 'foobar', 'bertie')),
|
||||
@@ -126,7 +126,7 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
|
||||
$this->assertEquals($expected, $ary);
|
||||
}
|
||||
|
||||
static public function fetchfield_seek_data()
|
||||
public static function fetchfield_seek_data()
|
||||
{
|
||||
return array(
|
||||
array(1, 'foobar'),
|
||||
@@ -152,7 +152,7 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
|
||||
$this->assertEquals($expected, $field);
|
||||
}
|
||||
|
||||
static public function query_limit_data()
|
||||
public static function query_limit_data()
|
||||
{
|
||||
return array(
|
||||
array(0, 0, array(array('username_clean' => 'barfoo'),
|
||||
@@ -193,7 +193,7 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
|
||||
$this->assertEquals($expected, $ary);
|
||||
}
|
||||
|
||||
public function like_expression_data()
|
||||
public static function like_expression_data()
|
||||
{
|
||||
// * = any_char; # = one_char
|
||||
return array(
|
||||
@@ -230,7 +230,7 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
|
||||
$db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
public function not_like_expression_data()
|
||||
public static function not_like_expression_data()
|
||||
{
|
||||
// * = any_char; # = one_char
|
||||
return array(
|
||||
@@ -290,7 +290,7 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
|
||||
$db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
public function in_set_data()
|
||||
public static function in_set_data()
|
||||
{
|
||||
return array(
|
||||
array('user_id', 3, false, false, array(array('username_clean' => 'bertie'))),
|
||||
@@ -364,7 +364,7 @@ class phpbb_dbal_select_test extends phpbb_database_test_case
|
||||
$db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
public function build_array_data()
|
||||
public static function build_array_data()
|
||||
{
|
||||
return array(
|
||||
array(array('username_clean' => 'barfoo'), array(array('username_clean' => 'barfoo'))),
|
||||
|
@@ -18,7 +18,7 @@ class phpbb_dbal_write_test extends phpbb_database_test_case
|
||||
return $this->createXMLDataSet(__DIR__.'/fixtures/config.xml');
|
||||
}
|
||||
|
||||
public function build_array_insert_data()
|
||||
public static function build_array_insert_data()
|
||||
{
|
||||
return array(
|
||||
array(array(
|
||||
@@ -167,7 +167,7 @@ class phpbb_dbal_write_test extends phpbb_database_test_case
|
||||
$db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
public static function update_data()
|
||||
{
|
||||
return array(
|
||||
array(
|
||||
|
Reference in New Issue
Block a user