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
NewsContextTest.php
Go to the documentation of this file.
1
<?php
2
3
use
PHPUnit\Framework\TestCase
;
4
8
class
NewsContextTest
extends
TestCase
9
{
10
protected
function
tearDown
(): void
11
{
12
}
13
17
public
function
testContextProperties
(): void
18
{
19
$context
=
new
ilNewsContext
(
20
1,
21
"otype"
,
22
2,
23
"osubtype"
24
);
25
26
$this->assertEquals(
27
1,
28
$context
->getObjId()
29
);
30
$this->assertEquals(
31
"otype"
,
32
$context
->getObjType()
33
);
34
$this->assertEquals(
35
2,
36
$context
->getSubId()
37
);
38
$this->assertEquals(
39
"osubtype"
,
40
$context
->getSubType()
41
);
42
}
43
}
ilNewsContext
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilNewsContext.php:22
NewsContextTest
Definition:
NewsContextTest.php:8
$context
$context
Definition:
webdav.php:29
NewsContextTest\tearDown
tearDown()
Definition:
NewsContextTest.php:10
NewsContextTest\testContextProperties
testContextProperties()
Test admin view.
Definition:
NewsContextTest.php:17
TestCase
Services
News
test
NewsContextTest.php
Generated on Tue Apr 8 2025 22:02:44 for ILIAS by
1.8.13 (using
Doxyfile
)