mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/11201] Add tables to constructor in tests
PHPBB3-11201
This commit is contained in:
@@ -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)
|
public function test_dropdown_validate($field_required, $field_value, $expected, $description)
|
||||||
{
|
{
|
||||||
global $db;
|
global $db, $table_prefix;
|
||||||
$db = $this->new_dbal();
|
$db = $this->new_dbal();
|
||||||
|
|
||||||
$field_data = array(
|
$field_data = array(
|
||||||
@@ -54,13 +54,16 @@ class phpbb_profile_custom_test extends phpbb_database_test_case
|
|||||||
$template = $this->getMock('\phpbb\template\template');
|
$template = $this->getMock('\phpbb\template\template');
|
||||||
|
|
||||||
$cp = new \phpbb\profilefields\type\type_dropdown(
|
$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(
|
new \phpbb\profilefields\profilefields(
|
||||||
$this->getMock('\phpbb\auth\auth'),
|
$this->getMock('\phpbb\auth\auth'),
|
||||||
$db,
|
$db,
|
||||||
$request,
|
$request,
|
||||||
$template,
|
$template,
|
||||||
$user
|
$user,
|
||||||
|
$table_prefix . 'profile_fields',
|
||||||
|
$table_prefix . 'profile_lang',
|
||||||
|
$table_prefix . 'profile_fields_data'
|
||||||
),
|
),
|
||||||
$request,
|
$request,
|
||||||
$template,
|
$template,
|
||||||
|
Reference in New Issue
Block a user