1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-25 19:11:47 +02:00

[ticket/11201] Fix construction of dropdown type once again

PHPBB3-11201
This commit is contained in:
Joas Schilling
2014-01-17 15:03:26 +01:00
parent 74d36591e1
commit 0ec6af38a9

View File

@@ -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);