Class ilSessionTest.
More...
Class ilSessionTest.
Definition at line 30 of file ilSessionTest.php.
◆ setGlobalVariable()
ilSessionTest::setGlobalVariable |
( |
string |
$name, |
|
|
|
$value |
|
) |
| |
|
protected |
- Parameters
-
Definition at line 65 of file ilSessionTest.php.
References $c, $data, $DIC, $GLOBALS, $ilDB, $name, ilSession\_destroy(), ilSession\_destroyByUserId(), ilSession\_destroyExpiredSessions(), ilSession\_duplicate(), ilSession\_exists(), ilSession\_getData(), and ilSession\SESSION_HANDLING_FIXED.
Referenced by setUp().
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
◆ setUp()
Definition at line 32 of file ilSessionTest.php.
References $dic, $GLOBALS, and setGlobalVariable().
40 $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->getMock()
44 $this->getMockBuilder(ilObjUser::class)->disableOriginalConstructor()->getMock()
48 $this->getMockBuilder(ilDBInterface::class)->disableAutoReturnValueGeneration()->getMock()
52 $this->getMockBuilder(ilIniFile::class)->disableOriginalConstructor()->getMock()
56 $this->getMockBuilder(\
ILIAS\Administration\Setting::class)->getMock()
setGlobalVariable(string $name, $value)
Class ChatMainBarProvider .
Customizing of pimple-DIC for ILIAS.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
◆ testPasswordAssisstanceSession()
ilSessionTest::testPasswordAssisstanceSession |
( |
| ) |
|
Definition at line 211 of file ilSessionTest.php.
References $DIC, $ilUser, $res, db_pwassist_session_destroy(), db_pwassist_session_find(), db_pwassist_session_gc(), db_pwassist_session_read(), and db_pwassist_session_write().
218 $this->markTestIncomplete(
219 'This test has not been implemented yet.' 227 if ($res[
"pwassist_id"] ===
"12345") {
233 if ((
int) $res[
"user_id"] ===
$ilUser->getId()) {
241 $result .=
"destroy-";
246 $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.
The documentation for this class was generated from the following file: