ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
AwarenessSessionRepositoryTest.php
Go to the documentation of this file.
1<?php
2
19use PHPUnit\Framework\TestCase;
20
24class 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 {
41 $repo->setCount(15);
42 $this->assertEquals(
43 15,
44 $repo->getCount()
45 );
46 }
47
48 public function testHighlightCount(): void
49 {
51 $repo->setHighlightCount(6);
52 $this->assertEquals(
53 6,
54 $repo->getHighlightCount()
55 );
56 }
57
58 public function testLastUpdate(): void
59 {
61 $repo->setLastUpdate(1234);
62 $this->assertEquals(
63 1234,
64 $repo->getLastUpdate()
65 );
66 }
67
68 public function testOnlineUsersTS(): void
69 {
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}
ILIAS Awareness AwarenessSessionRepository $repo