diff options
author | Shitiz Garg <mail@dragooon.net> | 2014-06-09 15:15:42 +0530 |
---|---|---|
committer | Shitiz Garg <mail@dragooon.net> | 2014-06-17 14:59:26 +0530 |
commit | e8a6fee7434d6dab6a5f84c04b934ab41f797efd (patch) | |
tree | 0510c0ad3c2ec3d161b227acf84a3f9b5fdfa5a8 /tests/profilefields/type_dropdown_test.php | |
parent | 86754cf572909b61fb2cd3e29cef42e2a8079dd7 (diff) | |
download | forums-e8a6fee7434d6dab6a5f84c04b934ab41f797efd.tar forums-e8a6fee7434d6dab6a5f84c04b934ab41f797efd.tar.gz forums-e8a6fee7434d6dab6a5f84c04b934ab41f797efd.tar.bz2 forums-e8a6fee7434d6dab6a5f84c04b934ab41f797efd.tar.xz forums-e8a6fee7434d6dab6a5f84c04b934ab41f797efd.zip |
[ticket/12514] Move requires to the top of the files
PHPBB3-12514
Diffstat (limited to 'tests/profilefields/type_dropdown_test.php')
-rw-r--r-- | tests/profilefields/type_dropdown_test.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/profilefields/type_dropdown_test.php b/tests/profilefields/type_dropdown_test.php index 0e1fb101b7..d71ee78497 100644 --- a/tests/profilefields/type_dropdown_test.php +++ b/tests/profilefields/type_dropdown_test.php @@ -6,6 +6,10 @@ * */ +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; @@ -20,11 +24,7 @@ class phpbb_profilefield_type_dropdown_test extends phpbb_test_case */ public function setUp() { - global $request, $user, $cache, $db, $table_prefix; - - 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'; + global $request, $user, $cache, $db, $table_prefix;Ω $user = $this->getMock('\phpbb\user'); $cache = new phpbb_mock_cache; |