aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-07-11 18:21:50 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-07-11 18:22:26 -0400
commit0fbf8f8c81e2ec3eddda58498c52812cf8e4a419 (patch)
tree5b805cef263bcd8d91741ce536f1eaaa6ecee72e
parentc17f8a5d373e103fd397766358e3ff7fc3891192 (diff)
downloadforums-0fbf8f8c81e2ec3eddda58498c52812cf8e4a419.tar
forums-0fbf8f8c81e2ec3eddda58498c52812cf8e4a419.tar.gz
forums-0fbf8f8c81e2ec3eddda58498c52812cf8e4a419.tar.bz2
forums-0fbf8f8c81e2ec3eddda58498c52812cf8e4a419.tar.xz
forums-0fbf8f8c81e2ec3eddda58498c52812cf8e4a419.zip
[feature/auth-refactor] Move test classes into separate directory
PHPBB3-9734
-rw-r--r--tests/acp_board/auth_provider/invalid.php13
-rw-r--r--tests/acp_board/auth_provider/valid.php16
-rw-r--r--tests/acp_board/select_auth_method_test.php15
3 files changed, 31 insertions, 13 deletions
diff --git a/tests/acp_board/auth_provider/invalid.php b/tests/acp_board/auth_provider/invalid.php
new file mode 100644
index 0000000000..c12851afe6
--- /dev/null
+++ b/tests/acp_board/auth_provider/invalid.php
@@ -0,0 +1,13 @@
+<?php
+/**
+*
+* @package testing
+* @copyright (c) 2013 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+class phpbb_auth_provider_acp_board_invalid
+{
+
+}
diff --git a/tests/acp_board/auth_provider/valid.php b/tests/acp_board/auth_provider/valid.php
new file mode 100644
index 0000000000..42b14cb0af
--- /dev/null
+++ b/tests/acp_board/auth_provider/valid.php
@@ -0,0 +1,16 @@
+<?php
+/**
+*
+* @package testing
+* @copyright (c) 2013 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+class phpbb_auth_provider_acp_board_valid extends phpbb_auth_provider_base
+{
+ public function login($username, $password)
+ {
+ return;
+ }
+}
diff --git a/tests/acp_board/select_auth_method_test.php b/tests/acp_board/select_auth_method_test.php
index f81cf19db3..922ddda1d6 100644
--- a/tests/acp_board/select_auth_method_test.php
+++ b/tests/acp_board/select_auth_method_test.php
@@ -8,6 +8,8 @@
*/
require_once dirname(__FILE__).'/../../phpBB/includes/acp/acp_board.php';
+require_once dirname(__FILE__).'/auth_provider/invalid.php';
+require_once dirname(__FILE__).'/auth_provider/valid.php';
class phpbb_acp_board_select_auth_method_test extends PHPUnit_Framework_TestCase
{
@@ -28,16 +30,3 @@ class phpbb_acp_board_select_auth_method_test extends PHPUnit_Framework_TestCase
$this->assertEquals($expected, $acp_board->select_auth_method('acp_board_valid'));
}
}
-
-class phpbb_auth_provider_acp_board_valid extends phpbb_auth_provider_base
-{
- public function login($username, $password)
- {
- return;
- }
-}
-
-class phpbb_auth_provider_acp_board_invalid
-{
-
-}