aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-01-18 13:12:50 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-01-18 13:16:28 +0100
commitad8d4492a703f48997bfba51e962bd2fc91a3acc (patch)
treef71e4f00d4cad9d379226b9b80c3c930da4f0fcc
parent197e026699e838c087b6d11a16ed6c2d9f15e0b0 (diff)
downloadforums-ad8d4492a703f48997bfba51e962bd2fc91a3acc.tar
forums-ad8d4492a703f48997bfba51e962bd2fc91a3acc.tar.gz
forums-ad8d4492a703f48997bfba51e962bd2fc91a3acc.tar.bz2
forums-ad8d4492a703f48997bfba51e962bd2fc91a3acc.tar.xz
forums-ad8d4492a703f48997bfba51e962bd2fc91a3acc.zip
[ticket/11201] Add tables to constructor in tests
PHPBB3-11201
-rw-r--r--tests/profile/custom_test.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/profile/custom_test.php b/tests/profile/custom_test.php
index 9a59225d70..654c9f6e5a 100644
--- a/tests/profile/custom_test.php
+++ b/tests/profile/custom_test.php
@@ -35,7 +35,7 @@ class phpbb_profile_custom_test extends phpbb_database_test_case
*/
public function test_dropdown_validate($field_required, $field_value, $expected, $description)
{
- global $db;
+ global $db, $table_prefix;
$db = $this->new_dbal();
$field_data = array(
@@ -54,13 +54,16 @@ class phpbb_profile_custom_test extends phpbb_database_test_case
$template = $this->getMock('\phpbb\template\template');
$cp = new \phpbb\profilefields\type\type_dropdown(
- new \phpbb\profilefields\lang_helper($db),
+ new \phpbb\profilefields\lang_helper($db, $table_prefix . 'profile_fields_lang'),
new \phpbb\profilefields\profilefields(
$this->getMock('\phpbb\auth\auth'),
$db,
$request,
$template,
- $user
+ $user,
+ $table_prefix . 'profile_fields',
+ $table_prefix . 'profile_lang',
+ $table_prefix . 'profile_fields_data'
),
$request,
$template,