ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
ClassificationSessionRepositoryTest.php
Go to the documentation of this file.
1
<?php
2
3
use PHPUnit\Framework\TestCase;
4
8
class
ClassificationSessionRepositoryTest
extends
TestCase
9
{
10
protected
ilClassificationSessionRepository
$repo
;
11
12
protected
function
setUp
(): void
13
{
14
parent::setUp();
15
$this->repo =
new
ilClassificationSessionRepository
(14);
16
}
17
18
protected
function
tearDown
(): void
19
{
20
}
21
22
public
function
testValueForProvider
(): void
23
{
24
$repo
=
$this->repo
;
25
$repo
->
setValueForProvider
(
"prov"
, [1,2,3]);
26
$this->assertEquals(
27
[1,2,3],
28
$repo
->
getValueForProvider
(
"prov"
)
29
);
30
}
31
32
public
function
testUnsetAll
(): void
33
{
34
$repo
=
$this->repo
;
35
$repo
->
setValueForProvider
(
"prov"
, [1,2,3]);
36
$repo
->
unsetAll
();
37
$this->assertEquals(
38
[],
39
$repo
->
getValueForProvider
(
"prov"
)
40
);
41
}
42
43
public
function
testUnsetValueForProvider
(): void
44
{
45
$repo
=
$this->repo
;
46
$repo
->
setValueForProvider
(
"prov1"
, [1,2,3]);
47
$repo
->
setValueForProvider
(
"prov2"
, [3,4,5]);
48
$repo
->
unsetValueForProvider
(
"prov1"
);
49
$this->assertEquals(
50
[],
51
$repo
->
getValueForProvider
(
"prov1"
)
52
);
53
$this->assertEquals(
54
[3,4,5],
55
$repo
->
getValueForProvider
(
"prov2"
)
56
);
57
}
58
}
ClassificationSessionRepositoryTest
Definition:
ClassificationSessionRepositoryTest.php:9
ClassificationSessionRepositoryTest\testUnsetValueForProvider
testUnsetValueForProvider()
Definition:
ClassificationSessionRepositoryTest.php:43
ClassificationSessionRepositoryTest\$repo
ilClassificationSessionRepository $repo
Definition:
ClassificationSessionRepositoryTest.php:10
ClassificationSessionRepositoryTest\setUp
setUp()
Definition:
ClassificationSessionRepositoryTest.php:12
ClassificationSessionRepositoryTest\testValueForProvider
testValueForProvider()
Definition:
ClassificationSessionRepositoryTest.php:22
ClassificationSessionRepositoryTest\tearDown
tearDown()
Definition:
ClassificationSessionRepositoryTest.php:18
ClassificationSessionRepositoryTest\testUnsetAll
testUnsetAll()
Definition:
ClassificationSessionRepositoryTest.php:32
ilClassificationSessionRepository
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilClassificationSessionRepository.php:21
ilClassificationSessionRepository\setValueForProvider
setValueForProvider(string $provider, array $value)
Definition:
class.ilClassificationSessionRepository.php:61
ilClassificationSessionRepository\unsetValueForProvider
unsetValueForProvider(string $provider)
Definition:
class.ilClassificationSessionRepository.php:38
ilClassificationSessionRepository\unsetAll
unsetAll()
Definition:
class.ilClassificationSessionRepository.php:33
ilClassificationSessionRepository\getValueForProvider
getValueForProvider(string $provider)
Definition:
class.ilClassificationSessionRepository.php:52
Services
Classification
test
ClassificationSessionRepositoryTest.php
Generated on Sun Nov 2 2025 22:01:31 for ILIAS by
1.9.4 (using
Doxyfile
)