ILIAS  release_8 Revision v8.24
AwarenessSessionRepositoryTest Class Reference
+ Inheritance diagram for AwarenessSessionRepositoryTest:
+ Collaboration diagram for AwarenessSessionRepositoryTest:

Public Member Functions

 testCount ()
 
 testHighlightCount ()
 
 testLastUpdate ()
 
 testOnlineUsersTS ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

ILIAS Awareness AwarenessSessionRepository $repo
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 8 of file AwarenessSessionRepositoryTest.php.

Member Function Documentation

◆ setUp()

AwarenessSessionRepositoryTest::setUp ( )
protected

Definition at line 12 of file AwarenessSessionRepositoryTest.php.

12 : void
13 {
14 parent::setUp();
15 $this->repo = new \ILIAS\Awareness\AwarenessSessionRepository();
16 }

◆ tearDown()

AwarenessSessionRepositoryTest::tearDown ( )
protected

Definition at line 18 of file AwarenessSessionRepositoryTest.php.

18 : void
19 {
20 }

◆ testCount()

AwarenessSessionRepositoryTest::testCount ( )

Definition at line 22 of file AwarenessSessionRepositoryTest.php.

22 : void
23 {
25 $repo->setCount(15);
26 $this->assertEquals(
27 15,
28 $repo->getCount()
29 );
30 }
ILIAS Awareness AwarenessSessionRepository $repo

References $repo.

◆ testHighlightCount()

AwarenessSessionRepositoryTest::testHighlightCount ( )

Definition at line 32 of file AwarenessSessionRepositoryTest.php.

32 : void
33 {
35 $repo->setHighlightCount(6);
36 $this->assertEquals(
37 6,
38 $repo->getHighlightCount()
39 );
40 }

References $repo.

◆ testLastUpdate()

AwarenessSessionRepositoryTest::testLastUpdate ( )

Definition at line 42 of file AwarenessSessionRepositoryTest.php.

42 : void
43 {
45 $repo->setLastUpdate(1234);
46 $this->assertEquals(
47 1234,
48 $repo->getLastUpdate()
49 );
50 }

References $repo.

◆ testOnlineUsersTS()

AwarenessSessionRepositoryTest::testOnlineUsersTS ( )

Definition at line 52 of file AwarenessSessionRepositoryTest.php.

52 : void
53 {
55 $repo->setOnlineUsersTS("2022-01-01 16:00:05");
56 $this->assertEquals(
57 "2022-01-01 16:00:05",
58 $repo->getOnlineUsersTS()
59 );
60 }

References $repo.

Field Documentation

◆ $repo

ILIAS Awareness AwarenessSessionRepository AwarenessSessionRepositoryTest::$repo
protected

The documentation for this class was generated from the following file: