From 0ec6af38a97239003be76a85eb86e2f0aef5e99c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 17 Jan 2014 15:03:26 +0100 Subject: [ticket/11201] Fix construction of dropdown type once again PHPBB3-11201 --- tests/profile/custom_test.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'tests/profile') 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); -- cgit v1.2.1