Definition at line 24 of file ilSessionTest.php.
◆ setUp()
Definition at line 28 of file ilSessionTest.php.
29 {
30 include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
31 ilUnitUtil::performInitialisation();
32 }
◆ testBasicSessionBehaviour()
ilSessionTest::testBasicSessionBehaviour |
( |
| ) |
|
@group IL_Init
Definition at line 37 of file ilSessionTest.php.
38 {
40
41 include_once("./Services/Authentication/classes/class.ilSession.php");
45 {
47 }
49 {
51 }
54 {
56 }
59 {
61 }
64 {
66 }
67
70 {
72 }
73 $this->assertEquals(
"exists-write-get-duplicate-destroy-destroyExp-destroyByUser-",
$result);
74 }
static _exists($a_session_id)
Check whether session exists.
static _writeData($a_session_id, $a_data)
Write session data.
static _destroyExpiredSessions()
Destroy expired sessions.
static _destroy($a_session_id, $a_closing_context=null, $a_expired_at=null)
Destroy session.
static _destroyByUserId($a_user_id)
Destroy session.
static _getData($a_session_id)
Get session data from table.
static _duplicate($a_session_id)
Duplicate session.
References $ilUser, $result, ilSession\_destroy(), ilSession\_destroyByUserId(), ilSession\_destroyExpiredSessions(), ilSession\_duplicate(), ilSession\_exists(), ilSession\_getData(), and ilSession\_writeData().
◆ testPasswordAssisstanceSession()
ilSessionTest::testPasswordAssisstanceSession |
( |
| ) |
|
@group IL_Init
Definition at line 79 of file ilSessionTest.php.
80 {
82
83 include_once("./include/inc.pwassist_session_handler.php");
84
86
87
89
90
92 if (
$res[
"pwassist_id"] ==
"12345")
93 {
95 }
96
97
100 {
102 }
103
104
108 {
110 }
111
113
114 $this->assertEquals(
"find-read-destroy-",
$result);
115 }
db_pwassist_session_destroy($pwassist_id)
destroy session
db_pwassist_session_find($user_id)
db_pwassist_session_write($pwassist_id, $maxlifetime, $user_id)
Writes serialized session data to the database.
db_pwassist_session_read($pwassist_id)
db_pwassist_session_gc()
removes all expired sessions
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().
◆ $backupGlobals
ilSessionTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: