aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/profilefields/type_dropdown_test.php10
-rw-r--r--tests/profilefields/type_string_test.php8
2 files changed, 9 insertions, 9 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;
diff --git a/tests/profilefields/type_string_test.php b/tests/profilefields/type_string_test.php
index 869f20b94f..f1423d59d9 100644
--- a/tests/profilefields/type_string_test.php
+++ b/tests/profilefields/type_string_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_string_test extends phpbb_test_case
{
protected $cp;
@@ -21,10 +25,6 @@ class phpbb_profilefield_type_string_test extends phpbb_test_case
{
global $request, $user, $cache;
- 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';
-
$user = $this->getMock('\phpbb\user');
$cache = new phpbb_mock_cache;
$user->expects($this->any())