ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
NavigationSessionRepositoryTest.php
Go to the documentation of this file.
1 <?php
2 
20 
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  {
45  $repo = $this->repo;
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