ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
NavigationSessionRepositoryTest Class Reference

Test session repository. More...

+ Inheritance diagram for NavigationSessionRepositoryTest:
+ Collaboration diagram for NavigationSessionRepositoryTest:

Public Member Functions

 testSortAscending ()
 Test history. More...
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

ILIAS Navigation NavigationSessionRepository $repo
 

Detailed Description

Test session repository.

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

Definition at line 10 of file NavigationSessionRepositoryTest.php.

Member Function Documentation

◆ setUp()

NavigationSessionRepositoryTest::setUp ( )
protected

Definition at line 14 of file NavigationSessionRepositoryTest.php.

14  : void
15  {
16  parent::setUp();
17  $this->repo = new \ILIAS\Navigation\NavigationSessionRepository();
18  }

◆ tearDown()

NavigationSessionRepositoryTest::tearDown ( )
protected

Definition at line 20 of file NavigationSessionRepositoryTest.php.

20  : void
21  {
22  }

◆ testSortAscending()

NavigationSessionRepositoryTest::testSortAscending ( )

Test history.

Definition at line 27 of file NavigationSessionRepositoryTest.php.

References $repo.

27  : void
28  {
30  $repo->setHistory([
31  0 => "a",
32  1 => "b"
33  ]);
34  $this->assertEquals(
35  [
36  0 => "a",
37  1 => "b"
38  ],
39  $repo->getHistory()
40  );
41  }
ILIAS Navigation NavigationSessionRepository $repo

Field Documentation

◆ $repo

ILIAS Navigation NavigationSessionRepository NavigationSessionRepositoryTest::$repo
protected

Definition at line 12 of file NavigationSessionRepositoryTest.php.

Referenced by testSortAscending().


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