ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NavigationSessionRepositoryTest.php
Go to the documentation of this file.
1<?php
2
19use PHPUnit\Framework\TestCase;
20
26class NavigationSessionRepositoryTest extends TestCase
27{
28 protected \ILIAS\Repository\LastVisited\NavigationSessionRepository $repo;
29
30 protected function setUp(): void
31 {
32 parent::setUp();
33 $this->repo = new \ILIAS\Repository\LastVisited\NavigationSessionRepository();
34 }
35
36 protected function tearDown(): void
37 {
38 }
39
43 public function testSortAscending(): 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 }
58}
ILIAS Repository LastVisited NavigationSessionRepository $repo