ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
StorageOnPathWrapperTest.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
namespace
ILIAS\Tests\Setup\Metrics
;
22
23
use
ILIAS\Setup\Metrics
;
24
use
ILIAS\Setup\Metrics\Metric
as
M
;
25
use
PHPUnit\Framework\TestCase
;
26
27
class
StorageOnPathWrapperTest
extends
TestCase
28
{
29
public
const
PATH
=
"path"
;
30
31
public
function
setUp
(): void
32
{
33
$this->storage = $this->createMock(Metrics\Storage::class);
34
$this->wrapper =
new
Metrics\StorageOnPathWrapper
(
self::PATH
, $this->storage);
35
}
36
37
public
function
testStoresToPath
(): void
38
{
39
$key
=
"key"
;
40
$m =
new
M
(M::STABILITY_CONFIG, M::TYPE_BOOL,
true
,
"desc"
);
41
42
$this->storage->expects($this->once())
43
->method(
"store"
)
44
->with(
self::PATH
.
"."
.
$key
, $m);
45
46
$this->wrapper->store($key, $m);
47
}
48
}
Metric
PATH
const PATH
Definition:
proxy_ylocal.php:8
ILIAS\Tests\Setup\Metrics\StorageOnPathWrapperTest\PATH
const PATH
Definition:
StorageOnPathWrapperTest.php:29
ILIAS\Tests\Setup\Metrics\StorageOnPathWrapperTest\setUp
setUp()
Definition:
StorageOnPathWrapperTest.php:31
ILIAS\Tests\Setup\Metrics\StorageOnPathWrapperTest
Definition:
StorageOnPathWrapperTest.php:27
ILIAS\Setup\Metrics
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ArrayStorage.php:21
ILIAS\Setup\Metrics\StorageOnPathWrapper
Definition:
StorageOnPathWrapper.php:23
ILIAS\LTI\ToolProvider\$key
string $key
Consumer key/client ID value.
Definition:
System.php:193
ILIAS\Tests\Setup\Metrics\StorageOnPathWrapperTest\testStoresToPath
testStoresToPath()
Definition:
StorageOnPathWrapperTest.php:37
TestCase
ILIAS\Tests\Setup\Metrics
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ArrayStorageTest.php:21
tests
Setup
Metrics
StorageOnPathWrapperTest.php
Generated on Tue Apr 1 2025 22:02:51 for ILIAS by
1.8.13 (using
Doxyfile
)