aboutsummaryrefslogtreecommitdiffstats
path: root/tests/profilefields/type_dropdown_test.php
diff options
context:
space:
mode:
authorShitiz Garg <mail@dragooon.net>2014-06-09 19:57:26 +0530
committerShitiz Garg <mail@dragooon.net>2014-06-17 14:59:26 +0530
commite08a4eaf9a9b20705f143ede4850dc2a74408b9d (patch)
tree6c519b6fca260f003282a7b9428222333ab2e377 /tests/profilefields/type_dropdown_test.php
parent87729c81fcbada0d696b02b9bbdc2940ddd157f8 (diff)
downloadforums-e08a4eaf9a9b20705f143ede4850dc2a74408b9d.tar
forums-e08a4eaf9a9b20705f143ede4850dc2a74408b9d.tar.gz
forums-e08a4eaf9a9b20705f143ede4850dc2a74408b9d.tar.bz2
forums-e08a4eaf9a9b20705f143ede4850dc2a74408b9d.tar.xz
forums-e08a4eaf9a9b20705f143ede4850dc2a74408b9d.zip
[ticket/12514] Cleanup for type_dropdown_test.php
PHPBB3-12514
Diffstat (limited to 'tests/profilefields/type_dropdown_test.php')
-rw-r--r--tests/profilefields/type_dropdown_test.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/profilefields/type_dropdown_test.php b/tests/profilefields/type_dropdown_test.php
index a029d0f29f..4bfd0443fd 100644
--- a/tests/profilefields/type_dropdown_test.php
+++ b/tests/profilefields/type_dropdown_test.php
@@ -6,10 +6,6 @@
*
*/
-require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
-require_once dirname(__FILE__) . '/../../phpBB/includes/functions_content.php';
-require_once dirname(__FILE__) . '/../../phpBB/includes/utf/utf_tools.php';
-
class phpbb_profilefield_type_dropdown_test extends phpbb_test_case
{
protected $cp;
@@ -24,10 +20,7 @@ class phpbb_profilefield_type_dropdown_test extends phpbb_test_case
*/
public function setUp()
{
- global $request, $user, $cache, $db, $table_prefix;Ω
-
$user = $this->getMock('\phpbb\user');
- $cache = new phpbb_mock_cache;
$user->expects($this->any())
->method('lang')
->will($this->returnCallback(array($this, 'return_callback_implode')));
@@ -35,7 +28,7 @@ class phpbb_profilefield_type_dropdown_test extends phpbb_test_case
$request = $this->getMock('\phpbb\request\request');
$template = $this->getMock('\phpbb\template\template');
- $lang = $this->getMock('\phpbb\profilefields\lang_helper', array(), array($db, $table_prefix . 'profile_fields_lang'));
+ $lang = $this->getMock('\phpbb\profilefields\lang_helper', array(), array(null, null));
$lang->expects($this->any())
->method('get_options_lang');