mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 06:18:52 +00:00
[feature/auth-refactor] Skeleton of provider_apache_test
Creates a skeleton of the tests for provider_apache. PHPBB3-9734
This commit is contained in:
parent
8e1a503f44
commit
91c80dfc8e
1 changed files with 49 additions and 0 deletions
49
tests/auth/provider_apache_test.php
Normal file
49
tests/auth/provider_apache_test.php
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package testing
|
||||||
|
* @copyright (c) 2013 phpBB Group
|
||||||
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
require_once dirname(__FILE__).'/../../phpBB/includes/functions.php';
|
||||||
|
|
||||||
|
class phpbb_auth_provider_apache_test extends phpbb_database_test_case
|
||||||
|
{
|
||||||
|
protected $provider;
|
||||||
|
|
||||||
|
protected function setup()
|
||||||
|
{
|
||||||
|
parent::setUp();
|
||||||
|
|
||||||
|
global $phpbb_root_path, $phpEx;
|
||||||
|
|
||||||
|
$db = $this->new_dbal();
|
||||||
|
$config = new phpbb_config(array());
|
||||||
|
$request = $this->getMock('phpbb_request');
|
||||||
|
$user = $this->getMock('phpbb_user');
|
||||||
|
|
||||||
|
$this->provider = new phpbb_auth_provider_apache($db, $config, $request, $user, $phpbb_root_path, $phpEx);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDataSet()
|
||||||
|
{
|
||||||
|
return $this->createXMLDataSet(dirname(__FILE__).'/fixtures/user.xml');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_init()
|
||||||
|
{
|
||||||
|
$this->markTestIncomplete();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_login()
|
||||||
|
{
|
||||||
|
$this->markTestIncomplete();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_validate_session()
|
||||||
|
{
|
||||||
|
$this->markTestIncomplete();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue