mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/auth-refactor] Test validate_session on provider_apache
Provides a test for the validate_session() method of provider_apache. PHPBB3-9734
This commit is contained in:
parent
9e04328545
commit
5444e5b683
1 changed files with 5 additions and 1 deletions
|
@ -99,6 +99,10 @@ class phpbb_auth_provider_apache_test extends phpbb_database_test_case
|
|||
|
||||
public function test_validate_session()
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
$user = $this->getMock('phpbb_user');
|
||||
$user->data['username'] = 'foobar';
|
||||
$this->request->overwrite('PHP_AUTH_USER', 'foobar', phpbb_request_interface::SERVER);
|
||||
|
||||
$this->assertTrue($this->provider->validate_session($user));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue