aboutsummaryrefslogtreecommitdiffstats
path: root/tests/profile
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-01-17 15:03:26 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-01-17 21:13:58 +0100
commit0ec6af38a97239003be76a85eb86e2f0aef5e99c (patch)
tree88202f20aaca0a6f71b30d00488b0b48c6b2e745 /tests/profile
parent74d36591e1664702b6aae58802c8d89d7bc450b4 (diff)
downloadforums-0ec6af38a97239003be76a85eb86e2f0aef5e99c.tar
forums-0ec6af38a97239003be76a85eb86e2f0aef5e99c.tar.gz
forums-0ec6af38a97239003be76a85eb86e2f0aef5e99c.tar.bz2
forums-0ec6af38a97239003be76a85eb86e2f0aef5e99c.tar.xz
forums-0ec6af38a97239003be76a85eb86e2f0aef5e99c.zip
[ticket/11201] Fix construction of dropdown type once again
PHPBB3-11201
Diffstat (limited to 'tests/profile')
-rw-r--r--tests/profile/custom_test.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/profile/custom_test.php b/tests/profile/custom_test.php
index cfc350c162..9a59225d70 100644
--- a/tests/profile/custom_test.php
+++ b/tests/profile/custom_test.php
@@ -50,10 +50,20 @@ class phpbb_profile_custom_test extends phpbb_database_test_case
->method('lang')
->will($this->returnCallback(array($this, 'return_callback_implode')));
+ $request = $this->getMock('\phpbb\request\request');
+ $template = $this->getMock('\phpbb\template\template');
+
$cp = new \phpbb\profilefields\type\type_dropdown(
new \phpbb\profilefields\lang_helper($db),
- $this->getMock('\phpbb\request\request'),
- $this->getMock('\phpbb\template\template'),
+ new \phpbb\profilefields\profilefields(
+ $this->getMock('\phpbb\auth\auth'),
+ $db,
+ $request,
+ $template,
+ $user
+ ),
+ $request,
+ $template,
$user
);
$result = $cp->validate_profile_field($field_value, $field_data);