ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
AwarenessSessionRepositoryTest.php
Go to the documentation of this file.
1
<?php
2
3
use PHPUnit\Framework\TestCase;
4
8
class
AwarenessSessionRepositoryTest
extends
TestCase
9
{
10
protected \ILIAS\Awareness\AwarenessSessionRepository
$repo
;
11
12
protected
function
setUp
(): void
13
{
14
parent::setUp();
15
$this->repo = new \ILIAS\Awareness\AwarenessSessionRepository();
16
}
17
18
protected
function
tearDown
(): void
19
{
20
}
21
22
public
function
testCount
(): void
23
{
24
$repo
=
$this->repo
;
25
$repo
->setCount(15);
26
$this->assertEquals(
27
15,
28
$repo
->getCount()
29
);
30
}
31
32
public
function
testHighlightCount
(): void
33
{
34
$repo
=
$this->repo
;
35
$repo
->setHighlightCount(6);
36
$this->assertEquals(
37
6,
38
$repo
->getHighlightCount()
39
);
40
}
41
42
public
function
testLastUpdate
(): void
43
{
44
$repo
=
$this->repo
;
45
$repo
->setLastUpdate(1234);
46
$this->assertEquals(
47
1234,
48
$repo
->getLastUpdate()
49
);
50
}
51
52
public
function
testOnlineUsersTS
(): void
53
{
54
$repo
=
$this->repo
;
55
$repo
->setOnlineUsersTS(
"2022-01-01 16:00:05"
);
56
$this->assertEquals(
57
"2022-01-01 16:00:05"
,
58
$repo
->getOnlineUsersTS()
59
);
60
}
61
}
AwarenessSessionRepositoryTest
Definition:
AwarenessSessionRepositoryTest.php:9
AwarenessSessionRepositoryTest\setUp
setUp()
Definition:
AwarenessSessionRepositoryTest.php:12
AwarenessSessionRepositoryTest\tearDown
tearDown()
Definition:
AwarenessSessionRepositoryTest.php:18
AwarenessSessionRepositoryTest\testOnlineUsersTS
testOnlineUsersTS()
Definition:
AwarenessSessionRepositoryTest.php:52
AwarenessSessionRepositoryTest\testCount
testCount()
Definition:
AwarenessSessionRepositoryTest.php:22
AwarenessSessionRepositoryTest\$repo
ILIAS Awareness AwarenessSessionRepository $repo
Definition:
AwarenessSessionRepositoryTest.php:10
AwarenessSessionRepositoryTest\testHighlightCount
testHighlightCount()
Definition:
AwarenessSessionRepositoryTest.php:32
AwarenessSessionRepositoryTest\testLastUpdate
testLastUpdate()
Definition:
AwarenessSessionRepositoryTest.php:42
Services
Awareness
test
AwarenessSessionRepositoryTest.php
Generated on Mon Nov 3 2025 22:01:41 for ILIAS by
1.9.4 (using
Doxyfile
)