Class ilTestSessionTest.
More...
◆ setUp()
ilTestSessionTest::setUp |
( |
| ) |
|
|
protected |
◆ test_instantiateObject_shouldReturnInstance()
ilTestSessionTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 35 of file ilTestSessionTest.php.
37 $this->assertInstanceOf(ilTestSession::class, $this->testObj);
◆ testActiveId()
ilTestSessionTest::testActiveId |
( |
| ) |
|
Definition at line 46 of file ilTestSessionTest.php.
48 $this->testObj->active_id = 20;
49 $this->assertEquals(20, $this->testObj->getActiveId());
◆ testAnonymousId()
ilTestSessionTest::testAnonymousId |
( |
| ) |
|
Definition at line 64 of file ilTestSessionTest.php.
66 $this->testObj->setAnonymousId(20);
67 $this->assertEquals(20, $this->testObj->getAnonymousId());
◆ testIncreasePass()
ilTestSessionTest::testIncreasePass |
( |
| ) |
|
Definition at line 82 of file ilTestSessionTest.php.
84 $this->testObj->setPass(20);
85 $this->assertEquals(20, $this->testObj->getPass());
87 $this->testObj->increasePass();
88 $this->assertEquals(21, $this->testObj->getPass());
◆ testIsAnonymousUser()
ilTestSessionTest::testIsAnonymousUser |
( |
| ) |
|
◆ testIsObjectiveOriented()
ilTestSessionTest::testIsObjectiveOriented |
( |
| ) |
|
Definition at line 125 of file ilTestSessionTest.php.
127 $this->assertFalse($this->testObj->isObjectiveOriented());
129 $this->testObj->setObjectiveOrientedContainerId(20);
130 $this->assertTrue($this->testObj->isObjectiveOriented());
◆ testLastFinishedPass()
ilTestSessionTest::testLastFinishedPass |
( |
| ) |
|
Definition at line 107 of file ilTestSessionTest.php.
109 $this->testObj->setLastFinishedPass(20);
110 $this->assertEquals(20, $this->testObj->getLastFinishedPass());
◆ testLastSequence()
ilTestSessionTest::testLastSequence |
( |
| ) |
|
Definition at line 70 of file ilTestSessionTest.php.
72 $this->testObj->setLastSequence(20);
73 $this->assertEquals(20, $this->testObj->getLastSequence());
◆ testLastStartedPass()
ilTestSessionTest::testLastStartedPass |
( |
| ) |
|
Definition at line 119 of file ilTestSessionTest.php.
121 $this->testObj->setLastStartedPass(20);
122 $this->assertEquals(20, $this->testObj->getLastStartedPass());
◆ testObjectiveOrientedContainerId()
ilTestSessionTest::testObjectiveOrientedContainerId |
( |
| ) |
|
Definition at line 113 of file ilTestSessionTest.php.
115 $this->testObj->setObjectiveOrientedContainerId(20);
116 $this->assertEquals(20, $this->testObj->getObjectiveOrientedContainerId());
◆ testPass()
ilTestSessionTest::testPass |
( |
| ) |
|
Definition at line 76 of file ilTestSessionTest.php.
78 $this->testObj->setPass(20);
79 $this->assertEquals(20, $this->testObj->getPass());
◆ testPasswordChecked()
ilTestSessionTest::testPasswordChecked |
( |
| ) |
|
Definition at line 158 of file ilTestSessionTest.php.
References ilSession\get().
160 $this->testObj->active_id = 20;
161 $this->testObj->setPasswordChecked(
true);
163 $this->assertTrue($this->testObj->isPasswordChecked());
static get(string $a_var)
◆ testRefId()
ilTestSessionTest::testRefId |
( |
| ) |
|
Definition at line 40 of file ilTestSessionTest.php.
42 $this->testObj->setRefId(20);
43 $this->assertEquals(20, $this->testObj->getRefId());
◆ testSetAccessCodeToSession()
ilTestSessionTest::testSetAccessCodeToSession |
( |
| ) |
|
◆ testSubmitted()
ilTestSessionTest::testSubmitted |
( |
| ) |
|
Definition at line 91 of file ilTestSessionTest.php.
93 $this->assertFalse($this->testObj->isSubmitted());
94 $this->testObj->setSubmitted();
96 $this->assertTrue($this->testObj->isSubmitted());
◆ testSubmittedTimestamp()
ilTestSessionTest::testSubmittedTimestamp |
( |
| ) |
|
Definition at line 99 of file ilTestSessionTest.php.
101 $this->assertEmpty($this->testObj->getSubmittedTimestamp());
102 $this->testObj->setSubmittedTimestamp();
104 $this->assertIsString($this->testObj->getSubmittedTimestamp());
◆ testTestId()
ilTestSessionTest::testTestId |
( |
| ) |
|
Definition at line 58 of file ilTestSessionTest.php.
60 $this->testObj->setTestId(20);
61 $this->assertEquals(20, $this->testObj->getTestId());
◆ testUnsetAccessCodeInSession()
ilTestSessionTest::testUnsetAccessCodeInSession |
( |
| ) |
|
◆ testUserId()
ilTestSessionTest::testUserId |
( |
| ) |
|
Definition at line 52 of file ilTestSessionTest.php.
54 $this->testObj->setUserId(20);
55 $this->assertEquals(20, $this->testObj->getUserId());
◆ $testObj
The documentation for this class was generated from the following file: