Definition at line 24 of file ilSessionTest.php.
◆ setUp()
Definition at line 28 of file ilSessionTest.php.
30 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
31 ilUnitUtil::performInitialisation();
◆ testBasicSessionBehaviour()
ilSessionTest::testBasicSessionBehaviour |
( |
| ) |
|
IL_Init
Definition at line 37 of file ilSessionTest.php.
References $ilUser, $result, ilSession\_destroy(), ilSession\_destroyByUserId(), ilSession\_destroyExpiredSessions(), ilSession\_duplicate(), ilSession\_exists(), ilSession\_getData(), and ilSession\_writeData().
41 include_once(
"./Services/Authentication/classes/class.ilSession.php");
73 $this->assertEquals(
"exists-write-get-duplicate-destroy-destroyExp-destroyByUser-",
$result);
static _destroy($a_session_id, $a_closing_context=null, $a_expired_at=null)
Destroy session.
static _destroyExpiredSessions()
Destroy expired sessions.
static _exists($a_session_id)
Check whether session exists.
static _getData($a_session_id)
Get session data from table.
static _destroyByUserId($a_user_id)
Destroy session.
static _writeData($a_session_id, $a_data)
Write session data.
static _duplicate($a_session_id)
Duplicate session.
◆ testPasswordAssisstanceSession()
ilSessionTest::testPasswordAssisstanceSession |
( |
| ) |
|
IL_Init
Definition at line 79 of file ilSessionTest.php.
References $ilUser, $res, $result, db_pwassist_session_destroy(), db_pwassist_session_find(), db_pwassist_session_gc(), db_pwassist_session_read(), and db_pwassist_session_write().
83 include_once(
"./include/inc.pwassist_session_handler.php");
92 if ($res[
"pwassist_id"] ==
"12345")
99 if ($res[
"user_id"] == $ilUser->getId())
114 $this->assertEquals(
"find-read-destroy-",
$result);
db_pwassist_session_destroy($pwassist_id)
destroy session
db_pwassist_session_read($pwassist_id)
db_pwassist_session_find($user_id)
db_pwassist_session_gc()
removes all expired sessions
db_pwassist_session_write($pwassist_id, $maxlifetime, $user_id)
Writes serialized session data to the database.
◆ $backupGlobals
ilSessionTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: