ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
ContentModeManagerTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
PHPUnit\Framework\TestCase
;
22
28
class
ContentModeManagerTest
extends
TestCase
29
{
30
protected \ILIAS\Container\Content\ViewManager
$manager
;
31
32
protected
function
setUp
(): void
33
{
34
/* parent::setUp();
35
$view_repo = new \ILIAS\Container\Content\ModeSessionRepository();
36
$this->manager = new \ILIAS\Container\Content\ModeManager($view_repo);*/
37
}
38
39
protected
function
tearDown
(): void
40
{
41
}
42
46
public
function
testAdminView
(): void
47
{
48
$this->markTestSkipped(
'SetUp for this case fails.'
);
49
50
$manager =
$this->manager
;
51
52
$manager->setAdminMode();
53
54
$this->assertEquals(
55
true
,
56
$manager->isAdminMode()
57
);
58
$this->assertEquals(
59
false
,
60
$manager->isContentMode()
61
);
62
}
63
67
public
function
testContentView
(): void
68
{
69
$this->markTestSkipped(
'SetUp for this case fails.'
);
70
71
$manager =
$this->manager
;
72
73
$manager->setContentMode();
74
75
$this->assertEquals(
76
false
,
77
$manager->isAdminMode()
78
);
79
$this->assertEquals(
80
true
,
81
$manager->isContentMode()
82
);
83
}
84
}
ContentModeManagerTest
Test clipboard repository.
Definition:
ContentModeManagerTest.php:28
ContentModeManagerTest\$manager
ILIAS Container Content ViewManager $manager
Definition:
ContentModeManagerTest.php:30
ContentModeManagerTest\testContentView
testContentView()
Test content view.
Definition:
ContentModeManagerTest.php:67
ContentModeManagerTest\testAdminView
testAdminView()
Test admin view.
Definition:
ContentModeManagerTest.php:46
ContentModeManagerTest\setUp
setUp()
Definition:
ContentModeManagerTest.php:32
ContentModeManagerTest\tearDown
tearDown()
Definition:
ContentModeManagerTest.php:39
TestCase
TestCase
components
ILIAS
Container
tests
ContentModeManagerTest.php
Generated on Sun Apr 13 2025 23:02:35 for ILIAS by
1.8.13 (using
Doxyfile
)