aboutsummaryrefslogtreecommitdiffstats
path: root/tests/groupposition/legend_test.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-11-14 15:31:16 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-11-14 15:31:16 +0100
commit79eea0ccac1bc6dd5d39b4d47e973ef522cf7781 (patch)
tree4457c2a25c9759ee3a04637aff616516295291f2 /tests/groupposition/legend_test.php
parenteac1c46588d3121a050bda42690444c8888c40dd (diff)
downloadforums-79eea0ccac1bc6dd5d39b4d47e973ef522cf7781.tar
forums-79eea0ccac1bc6dd5d39b4d47e973ef522cf7781.tar.gz
forums-79eea0ccac1bc6dd5d39b4d47e973ef522cf7781.tar.bz2
forums-79eea0ccac1bc6dd5d39b4d47e973ef522cf7781.tar.xz
forums-79eea0ccac1bc6dd5d39b4d47e973ef522cf7781.zip
[ticket/10411] Use DIC to get the groupposition classes
PHPBB3-10411
Diffstat (limited to 'tests/groupposition/legend_test.php')
-rw-r--r--tests/groupposition/legend_test.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/groupposition/legend_test.php b/tests/groupposition/legend_test.php
index a2a16e06ad..cb9b514ff8 100644
--- a/tests/groupposition/legend_test.php
+++ b/tests/groupposition/legend_test.php
@@ -35,7 +35,7 @@ class phpbb_groupposition_legend_test extends phpbb_database_test_case
$user = new phpbb_user;
$user->lang = array();
- $test_class = new phpbb_groupposition_legend($db, $user, '');
+ $test_class = new phpbb_groupposition_legend($db, $user);
$this->assertEquals($expected, $test_class->get_group_value($group_id));
}
@@ -48,7 +48,7 @@ class phpbb_groupposition_legend_test extends phpbb_database_test_case
$user = new phpbb_user;
$user->lang = array();
- $test_class = new phpbb_groupposition_legend($db, $user, '');
+ $test_class = new phpbb_groupposition_legend($db, $user);
$this->assertEquals(2, $test_class->get_group_count());
}
@@ -80,7 +80,7 @@ class phpbb_groupposition_legend_test extends phpbb_database_test_case
$user = new phpbb_user;
$user->lang = array();
- $test_class = new phpbb_groupposition_legend($db, $user, '');
+ $test_class = new phpbb_groupposition_legend($db, $user);
$test_class->add_group($group_id);
$result = $db->sql_query('SELECT group_id, group_legend
@@ -138,7 +138,7 @@ class phpbb_groupposition_legend_test extends phpbb_database_test_case
$user = new phpbb_user;
$user->lang = array();
- $test_class = new phpbb_groupposition_legend($db, $user, '');
+ $test_class = new phpbb_groupposition_legend($db, $user);
$test_class->delete_group($group_id, $skip_group);
$result = $db->sql_query('SELECT group_id, group_legend
@@ -181,7 +181,7 @@ class phpbb_groupposition_legend_test extends phpbb_database_test_case
$user = new phpbb_user;
$user->lang = array();
- $test_class = new phpbb_groupposition_legend($db, $user, '');
+ $test_class = new phpbb_groupposition_legend($db, $user);
$test_class->move_up($group_id);
$result = $db->sql_query('SELECT group_id, group_legend
@@ -224,7 +224,7 @@ class phpbb_groupposition_legend_test extends phpbb_database_test_case
$user = new phpbb_user;
$user->lang = array();
- $test_class = new phpbb_groupposition_legend($db, $user, '');
+ $test_class = new phpbb_groupposition_legend($db, $user);
$test_class->move_down($group_id);
$result = $db->sql_query('SELECT group_id, group_legend
@@ -287,7 +287,7 @@ class phpbb_groupposition_legend_test extends phpbb_database_test_case
$user = new phpbb_user;
$user->lang = array();
- $test_class = new phpbb_groupposition_legend($db, $user, '');
+ $test_class = new phpbb_groupposition_legend($db, $user);
$test_class->move($group_id, $increment);
$result = $db->sql_query('SELECT group_id, group_legend