ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 Repository LastVisited NavigationSessionRepository $repo
 

Detailed Description

Test session repository.

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

Definition at line 26 of file NavigationSessionRepositoryTest.php.

Member Function Documentation

◆ setUp()

NavigationSessionRepositoryTest::setUp ( )
protected

Definition at line 30 of file NavigationSessionRepositoryTest.php.

30 : void
31 {
32 parent::setUp();
33 $this->repo = new \ILIAS\Repository\LastVisited\NavigationSessionRepository();
34 }

◆ tearDown()

NavigationSessionRepositoryTest::tearDown ( )
protected

Definition at line 36 of file NavigationSessionRepositoryTest.php.

36 : void
37 {
38 }

◆ testSortAscending()

NavigationSessionRepositoryTest::testSortAscending ( )

Test history.

Definition at line 43 of file NavigationSessionRepositoryTest.php.

43 : void
44 {
46 $repo->setHistory([
47 0 => "a",
48 1 => "b"
49 ]);
50 $this->assertEquals(
51 [
52 0 => "a",
53 1 => "b"
54 ],
55 $repo->getHistory()
56 );
57 }
ILIAS Repository LastVisited NavigationSessionRepository $repo

References $repo.

Field Documentation

◆ $repo

ILIAS Repository LastVisited NavigationSessionRepository NavigationSessionRepositoryTest::$repo
protected

Definition at line 28 of file NavigationSessionRepositoryTest.php.

Referenced by testSortAscending().


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