ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
NavigationSessionRepositoryTest.php
Go to the documentation of this file.
1
<?php
2
19
use
PHPUnit\Framework\TestCase
;
20
26
class
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
{
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
}
NavigationSessionRepositoryTest\testSortAscending
testSortAscending()
Test history.
Definition:
NavigationSessionRepositoryTest.php:43
NavigationSessionRepositoryTest
Test session repository.
Definition:
NavigationSessionRepositoryTest.php:26
NavigationSessionRepositoryTest\$repo
ILIAS Repository LastVisited NavigationSessionRepository $repo
Definition:
NavigationSessionRepositoryTest.php:28
NavigationSessionRepositoryTest\setUp
setUp()
Definition:
NavigationSessionRepositoryTest.php:30
NavigationSessionRepositoryTest\tearDown
tearDown()
Definition:
NavigationSessionRepositoryTest.php:36
TestCase
TestCase
components
ILIAS
Repository
tests
LastVisited
NavigationSessionRepositoryTest.php
Generated on Wed Sep 3 2025 23:03:41 for ILIAS by
1.8.13 (using
Doxyfile
)