aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functions_acp
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2011-02-01 14:54:29 +0100
committerJoas Schilling <nickvergessen@gmx.de>2011-02-01 14:54:29 +0100
commit9846d806f3bc719138f237b64c8ca7db961838e8 (patch)
tree2b69ec1ad6627ffa22a927ab860fa5bfbd83b5c3 /tests/functions_acp
parent6b00d7aa096b01ce6e59a8467f79eb193c25a35b (diff)
downloadforums-9846d806f3bc719138f237b64c8ca7db961838e8.tar
forums-9846d806f3bc719138f237b64c8ca7db961838e8.tar.gz
forums-9846d806f3bc719138f237b64c8ca7db961838e8.tar.bz2
forums-9846d806f3bc719138f237b64c8ca7db961838e8.tar.xz
forums-9846d806f3bc719138f237b64c8ca7db961838e8.zip
[ticket/9823] Move mock file into the mock/ folder.
PHPBB3-9823
Diffstat (limited to 'tests/functions_acp')
-rw-r--r--tests/functions_acp/build_cfg_template_test.php4
-rw-r--r--tests/functions_acp/build_select_test.php4
-rw-r--r--tests/functions_acp/h_radio_test.php4
-rw-r--r--tests/functions_acp/user_mock.php33
-rw-r--r--tests/functions_acp/validate_config_vars_test.php4
-rw-r--r--tests/functions_acp/validate_range_test.php4
6 files changed, 10 insertions, 43 deletions
diff --git a/tests/functions_acp/build_cfg_template_test.php b/tests/functions_acp/build_cfg_template_test.php
index c573c7cdb0..7bf85a3532 100644
--- a/tests/functions_acp/build_cfg_template_test.php
+++ b/tests/functions_acp/build_cfg_template_test.php
@@ -7,8 +7,8 @@
*
*/
-require_once dirname(__FILE__) . 'user_mock.php';
-require_once dirname(__FILE__) . '../../phpBB/includes/functions_acp.php';
+require_once dirname(__FILE__) . '/../mock/lang.php';
+require_once dirname(__FILE__) . '/../../phpBB/includes/functions_acp.php';
class phpbb_functions_acp_build_cfg_template_test extends phpbb_test_case
{
diff --git a/tests/functions_acp/build_select_test.php b/tests/functions_acp/build_select_test.php
index a4f5e419ea..7079e69f12 100644
--- a/tests/functions_acp/build_select_test.php
+++ b/tests/functions_acp/build_select_test.php
@@ -7,8 +7,8 @@
*
*/
-require_once dirname(__FILE__) . 'user_mock.php';
-require_once dirname(__FILE__) . '../../phpBB/includes/functions_acp.php';
+require_once dirname(__FILE__) . '/../mock/lang.php';
+require_once dirname(__FILE__) . '/../../phpBB/includes/functions_acp.php';
class phpbb_functions_acp_built_select_test extends phpbb_test_case
{
diff --git a/tests/functions_acp/h_radio_test.php b/tests/functions_acp/h_radio_test.php
index 924b502ede..18cb5d031e 100644
--- a/tests/functions_acp/h_radio_test.php
+++ b/tests/functions_acp/h_radio_test.php
@@ -7,8 +7,8 @@
*
*/
-require_once dirname(__FILE__) . 'user_mock.php';
-require_once dirname(__FILE__) . '../../phpBB/includes/functions_acp.php';
+require_once dirname(__FILE__) . '/../mock/lang.php';
+require_once dirname(__FILE__) . '/../../phpBB/includes/functions_acp.php';
class phpbb_functions_acp_h_radio_test extends phpbb_test_case
{
diff --git a/tests/functions_acp/user_mock.php b/tests/functions_acp/user_mock.php
deleted file mode 100644
index 17a39629c1..0000000000
--- a/tests/functions_acp/user_mock.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/**
-*
-* @package testing
-* @copyright (c) 2010 phpBB Group
-* @license http://opensource.org/licenses/gpl-license.php GNU Public License
-*
-*/
-
-/**
-* phpbb_mock_lang
-* mock a user with some language-keys specified
-*/
-class phpbb_mock_lang implements ArrayAccess
-{
- public function offsetExists($offset)
- {
- return true;
- }
-
- public function offsetGet($offset)
- {
- return $offset;
- }
-
- public function offsetSet($offset, $value)
- {
- }
-
- public function offsetUnset($offset)
- {
- }
-}
diff --git a/tests/functions_acp/validate_config_vars_test.php b/tests/functions_acp/validate_config_vars_test.php
index 722d0ebddb..aa63bc38df 100644
--- a/tests/functions_acp/validate_config_vars_test.php
+++ b/tests/functions_acp/validate_config_vars_test.php
@@ -7,8 +7,8 @@
*
*/
-require_once dirname(__FILE__) . 'user_mock.php';
-require_once dirname(__FILE__) . '../../phpBB/includes/functions_acp.php';
+require_once dirname(__FILE__) . '/../mock/lang.php';
+require_once dirname(__FILE__) . '/../../phpBB/includes/functions_acp.php';
class phpbb_functions_acp_validate_config_vars_test extends phpbb_test_case
{
diff --git a/tests/functions_acp/validate_range_test.php b/tests/functions_acp/validate_range_test.php
index fb1d15c032..07c9538c66 100644
--- a/tests/functions_acp/validate_range_test.php
+++ b/tests/functions_acp/validate_range_test.php
@@ -7,8 +7,8 @@
*
*/
-require_once dirname(__FILE__) . 'user_mock.php';
-require_once dirname(__FILE__) . '../../phpBB/includes/functions_acp.php';
+require_once dirname(__FILE__) . '/../mock/lang.php';
+require_once dirname(__FILE__) . '/../../phpBB/includes/functions_acp.php';
class phpbb_functions_acp_validate_range_test extends phpbb_test_case
{