ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
NavigationSessionRepositoryTest.php
Go to the documentation of this file.
1
<?php
2
3
use
PHPUnit\Framework\TestCase
;
4
10
class
NavigationSessionRepositoryTest
extends
TestCase
11
{
12
protected \ILIAS\Navigation\NavigationSessionRepository
$repo
;
13
14
protected
function
setUp
(): void
15
{
16
parent::setUp();
17
$this->repo = new \ILIAS\Navigation\NavigationSessionRepository();
18
}
19
20
protected
function
tearDown
(): void
21
{
22
}
23
27
public
function
testSortAscending
(): void
28
{
29
$repo =
$this->repo
;
30
$repo->setHistory([
31
0 =>
"a"
,
32
1 =>
"b"
33
]);
34
$this->assertEquals(
35
[
36
0 =>
"a"
,
37
1 =>
"b"
38
],
39
$repo->getHistory()
40
);
41
}
42
}
NavigationSessionRepositoryTest\$repo
ILIAS Navigation NavigationSessionRepository $repo
Definition:
NavigationSessionRepositoryTest.php:12
NavigationSessionRepositoryTest\testSortAscending
testSortAscending()
Test history.
Definition:
NavigationSessionRepositoryTest.php:27
NavigationSessionRepositoryTest
Test session repository.
Definition:
NavigationSessionRepositoryTest.php:10
NavigationSessionRepositoryTest\setUp
setUp()
Definition:
NavigationSessionRepositoryTest.php:14
NavigationSessionRepositoryTest\tearDown
tearDown()
Definition:
NavigationSessionRepositoryTest.php:20
TestCase
Services
Navigation
test
NavigationSessionRepositoryTest.php
Generated on Wed Sep 3 2025 22:02:34 for ILIAS by
1.8.13 (using
Doxyfile
)