mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
35 lines
871 B
PHP
35 lines
871 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @package TBD
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
|
|
namespace Tests\PHPUnit\phpOMS\Account;
|
|
|
|
use phpOMS\Auth\Auth;
|
|
use phpOMS\Auth\LoginReturnType;
|
|
use phpOMS\DataStorage\Database\DatabasePool;
|
|
use phpOMS\DataStorage\Session\ConsoleSession;
|
|
use phpOMS\DataStorage\Session\SocketSession;
|
|
|
|
require_once __DIR__ . '/../../../../phpOMS/Autoloader.php';
|
|
|
|
class AuthTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
public function testWithHttpSession()
|
|
{
|
|
self::assertEquals(0, Auth::authenticate($GLOBALS['httpSession']));
|
|
|
|
Auth::logout($GLOBALS['httpSession']);
|
|
self::assertEquals(0, Auth::authenticate($GLOBALS['httpSession']));
|
|
}
|
|
}
|