ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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
Test session repository.
Definition:
NavigationSessionRepositoryTest.php:27
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
NavigationSessionRepositoryTest\testSortAscending
testSortAscending()
Test history.
Definition:
NavigationSessionRepositoryTest.php:43
components
ILIAS
Repository
tests
LastVisited
NavigationSessionRepositoryTest.php
Generated on Sun Oct 19 2025 23:03:28 for ILIAS by
1.9.4 (using
Doxyfile
)