Class ilSessionTest.
More...
Class ilSessionTest.
Definition at line 30 of file ilSessionTest.php.
◆ setGlobalVariable()
| ilSessionTest::setGlobalVariable |
( |
string |
$name, |
|
|
|
$value |
|
) |
| |
|
protected |
◆ setUp()
Definition at line 32 of file ilSessionTest.php.
32 : void
33 {
36
37
39 'ilCtrl',
40 $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->getMock()
41 );
43 'ilUser',
44 $this->getMockBuilder(ilObjUser::class)->disableOriginalConstructor()->getMock()
45 );
47 'ilDB',
48 $this->getMockBuilder(ilDBInterface::class)->disableAutoReturnValueGeneration()->getMock()
49 );
51 'ilClientIniFile',
52 $this->getMockBuilder(ilIniFile::class)->disableOriginalConstructor()->getMock()
53 );
55 'ilSetting',
56 $this->getMockBuilder(\
ILIAS\Administration\Setting::class)->getMock()
57 );
58 parent::setUp();
59 }
Customizing of pimple-DIC for ILIAS.
setGlobalVariable(string $name, $value)
Class ChatMainBarProvider \MainMenu\Provider.
References $dic, $GLOBALS, and setGlobalVariable().
◆ testPasswordAssisstanceSession()
| ilSessionTest::testPasswordAssisstanceSession |
( |
| ) |
|
Definition at line 211 of file ilSessionTest.php.
211 : void
212 {
214
216
217 $result = "";
218 $this->markTestIncomplete(
219 'This test has not been implemented yet.'
220 );
221 return;
222
224
225
227 if (
$res[
"pwassist_id"] ===
"12345") {
228 $result .= "find-";
229 }
230
231
234 $result .= "read-";
235 }
236
237
241 $result .= "destroy-";
242 }
243
245
246 $this->assertEquals("find-read-destroy-", $result);
247 }
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 $DIC, $ilUser, $res, db_pwassist_session_destroy(), db_pwassist_session_find(), db_pwassist_session_gc(), db_pwassist_session_read(), and db_pwassist_session_write().
The documentation for this class was generated from the following file: