ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
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 24 of file AwarenessSessionRepositoryTest.php.

Member Function Documentation

◆ setUp()

AwarenessSessionRepositoryTest::setUp ( )
protected

Definition at line 28 of file AwarenessSessionRepositoryTest.php.

28  : void
29  {
30  parent::setUp();
31  $this->repo = new \ILIAS\Awareness\AwarenessSessionRepository();
32  }

◆ tearDown()

AwarenessSessionRepositoryTest::tearDown ( )
protected

Definition at line 34 of file AwarenessSessionRepositoryTest.php.

34  : void
35  {
36  }

◆ testCount()

AwarenessSessionRepositoryTest::testCount ( )

Definition at line 38 of file AwarenessSessionRepositoryTest.php.

References $repo.

38  : void
39  {
41  $repo->setCount(15);
42  $this->assertEquals(
43  15,
44  $repo->getCount()
45  );
46  }
ILIAS Awareness AwarenessSessionRepository $repo

◆ testHighlightCount()

AwarenessSessionRepositoryTest::testHighlightCount ( )

Definition at line 48 of file AwarenessSessionRepositoryTest.php.

References $repo.

48  : void
49  {
51  $repo->setHighlightCount(6);
52  $this->assertEquals(
53  6,
54  $repo->getHighlightCount()
55  );
56  }
ILIAS Awareness AwarenessSessionRepository $repo

◆ testLastUpdate()

AwarenessSessionRepositoryTest::testLastUpdate ( )

Definition at line 58 of file AwarenessSessionRepositoryTest.php.

References $repo.

58  : void
59  {
61  $repo->setLastUpdate(1234);
62  $this->assertEquals(
63  1234,
64  $repo->getLastUpdate()
65  );
66  }
ILIAS Awareness AwarenessSessionRepository $repo

◆ testOnlineUsersTS()

AwarenessSessionRepositoryTest::testOnlineUsersTS ( )

Definition at line 68 of file AwarenessSessionRepositoryTest.php.

References $repo.

68  : 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  }
ILIAS Awareness AwarenessSessionRepository $repo

Field Documentation

◆ $repo

ILIAS Awareness AwarenessSessionRepository AwarenessSessionRepositoryTest::$repo
protected

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