ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
AwarenessSessionRepositoryTest.php
Go to the documentation of this file.
1
<?php
2
19
use PHPUnit\Framework\TestCase;
20
24
class
AwarenessSessionRepositoryTest
extends
TestCase
25
{
26
protected \ILIAS\Awareness\AwarenessSessionRepository
$repo
;
27
28
protected
function
setUp
(): void
29
{
30
parent::setUp();
31
$this->repo = new \ILIAS\Awareness\AwarenessSessionRepository();
32
}
33
34
protected
function
tearDown
(): void
35
{
36
}
37
38
public
function
testCount
(): void
39
{
40
$repo
=
$this->repo
;
41
$repo
->setCount(15);
42
$this->assertEquals(
43
15,
44
$repo
->getCount()
45
);
46
}
47
48
public
function
testHighlightCount
(): void
49
{
50
$repo
=
$this->repo
;
51
$repo
->setHighlightCount(6);
52
$this->assertEquals(
53
6,
54
$repo
->getHighlightCount()
55
);
56
}
57
58
public
function
testLastUpdate
(): void
59
{
60
$repo
=
$this->repo
;
61
$repo
->setLastUpdate(1234);
62
$this->assertEquals(
63
1234,
64
$repo
->getLastUpdate()
65
);
66
}
67
68
public
function
testOnlineUsersTS
(): void
69
{
70
$repo
=
$this->repo
;
71
$repo
->setOnlineUsersTS(
"2022-01-01 16:00:05"
);
72
$this->assertEquals(
73
"2022-01-01 16:00:05"
,
74
$repo
->getOnlineUsersTS()
75
);
76
}
77
}
AwarenessSessionRepositoryTest
Definition:
AwarenessSessionRepositoryTest.php:25
AwarenessSessionRepositoryTest\setUp
setUp()
Definition:
AwarenessSessionRepositoryTest.php:28
AwarenessSessionRepositoryTest\tearDown
tearDown()
Definition:
AwarenessSessionRepositoryTest.php:34
AwarenessSessionRepositoryTest\testOnlineUsersTS
testOnlineUsersTS()
Definition:
AwarenessSessionRepositoryTest.php:68
AwarenessSessionRepositoryTest\testCount
testCount()
Definition:
AwarenessSessionRepositoryTest.php:38
AwarenessSessionRepositoryTest\$repo
ILIAS Awareness AwarenessSessionRepository $repo
Definition:
AwarenessSessionRepositoryTest.php:26
AwarenessSessionRepositoryTest\testHighlightCount
testHighlightCount()
Definition:
AwarenessSessionRepositoryTest.php:48
AwarenessSessionRepositoryTest\testLastUpdate
testLastUpdate()
Definition:
AwarenessSessionRepositoryTest.php:58
components
ILIAS
Awareness
tests
AwarenessSessionRepositoryTest.php
Generated on Sat Oct 18 2025 23:02:35 for ILIAS by
1.9.4 (using
Doxyfile
)