aboutsummaryrefslogtreecommitdiffstats
path: root/tests/acp_board
diff options
context:
space:
mode:
Diffstat (limited to 'tests/acp_board')
-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
-{
-
-}