ILIAS
trunk Revision v11.0_alpha-1689-g66c127b4ae8
◀ 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
ilStudyProgrammeAutoMembershipsSourceTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
PHPUnit\Framework\TestCase
;
22
23
class
ilStudyProgrammeAutoMembershipsSourceTest
extends
TestCase
24
{
25
protected
int
$prg_obj_id
;
26
protected
string
$source_type
;
27
protected
int
$source_id
;
28
protected
bool
$enbl
;
29
protected
int
$usr_id
;
30
protected
DateTimeImmutable
$dat
;
31
32
protected
function
setUp
(): void
33
{
34
$this->prg_obj_id = 123;
35
$this->source_type =
ilStudyProgrammeAutoMembershipSource::TYPE_ROLE
;
36
$this->source_id = 666;
37
$this->enbl =
true
;
38
$this->usr_id = 6;
39
$this->dat =
new
DateTimeImmutable
(
'2019-06-05 15:25:12'
);
40
}
41
42
public
function
testConstruction
():
ilStudyProgrammeAutoMembershipSource
43
{
44
$ams =
new
ilStudyProgrammeAutoMembershipSource
(
45
$this->prg_obj_id,
46
$this->source_type,
47
$this->source_id,
48
$this->enbl,
49
$this->usr_id,
50
$this->dat,
51
false
52
);
53
$this->assertInstanceOf(
54
ilStudyProgrammeAutoMembershipSource::class,
55
$ams
56
);
57
return
$ams;
58
}
59
63
public
function
testGetPrgObjId
(
ilStudyProgrammeAutoMembershipSource
$ams): void
64
{
65
$this->assertEquals(
66
$this->prg_obj_id,
67
$ams->
getPrgObjId
()
68
);
69
}
70
74
public
function
testGetSourceType
(
ilStudyProgrammeAutoMembershipSource
$ams): void
75
{
76
$this->assertEquals(
77
$this->source_type,
78
$ams->
getSourceType
()
79
);
80
}
84
public
function
testGetSourceId
(
ilStudyProgrammeAutoMembershipSource
$ams): void
85
{
86
$this->assertEquals(
87
$this->source_id,
88
$ams->
getSourceId
()
89
);
90
}
91
95
public
function
testGetLastEditorId
(
ilStudyProgrammeAutoMembershipSource
$ams): void
96
{
97
$this->assertEquals(
98
$this->usr_id,
99
$ams->
getLastEditorId
()
100
);
101
}
102
106
public
function
testGetLastEdited
(
ilStudyProgrammeAutoMembershipSource
$ams): void
107
{
108
$this->assertEquals(
109
$this->dat,
110
$ams->
getLastEdited
()
111
);
112
}
113
}
ilStudyProgrammeAutoMembershipsSourceTest\setUp
setUp()
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:32
DateTimeImmutable
ilStudyProgrammeAutoMembershipSource\getSourceId
getSourceId()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:69
ilStudyProgrammeAutoMembershipsSourceTest\$prg_obj_id
int $prg_obj_id
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:25
ilStudyProgrammeAutoMembershipsSourceTest\testGetSourceId
testGetSourceId(ilStudyProgrammeAutoMembershipSource $ams)
testConstruction
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:84
ilStudyProgrammeAutoMembershipSource\TYPE_ROLE
const TYPE_ROLE
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:28
ilStudyProgrammeAutoMembershipsSourceTest\$enbl
bool $enbl
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:28
ilStudyProgrammeAutoMembershipsSourceTest\$dat
DateTimeImmutable $dat
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:30
ilStudyProgrammeAutoMembershipSource\getPrgObjId
getPrgObjId()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:59
ilStudyProgrammeAutoMembershipsSourceTest\$source_id
int $source_id
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:27
ilStudyProgrammeAutoMembershipsSourceTest\testGetLastEditorId
testGetLastEditorId(ilStudyProgrammeAutoMembershipSource $ams)
testConstruction
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:95
ilStudyProgrammeAutoMembershipsSourceTest\testGetLastEdited
testGetLastEdited(ilStudyProgrammeAutoMembershipSource $ams)
testConstruction
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:106
ilStudyProgrammeAutoMembershipSource
Class ilStudyProgrammeAutoMembershipSource.
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:26
ilStudyProgrammeAutoMembershipsSourceTest\$source_type
string $source_type
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:26
ilStudyProgrammeAutoMembershipSource\getLastEditorId
getLastEditorId()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:79
ilStudyProgrammeAutoMembershipsSourceTest\testGetPrgObjId
testGetPrgObjId(ilStudyProgrammeAutoMembershipSource $ams)
testConstruction
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:63
ilStudyProgrammeAutoMembershipSource\getSourceType
getSourceType()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:64
ilStudyProgrammeAutoMembershipsSourceTest\$usr_id
int $usr_id
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:29
ilStudyProgrammeAutoMembershipsSourceTest\testGetSourceType
testGetSourceType(ilStudyProgrammeAutoMembershipSource $ams)
testConstruction
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:74
ilStudyProgrammeAutoMembershipSource\getLastEdited
getLastEdited()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:84
ilStudyProgrammeAutoMembershipsSourceTest\testConstruction
testConstruction()
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:42
TestCase
ilStudyProgrammeAutoMembershipsSourceTest
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:23
TestCase
components
ILIAS
StudyProgramme
tests
model
AutoMemberships
ilStudyProgrammeAutoMembershipsSourceTest.php
Generated on Wed Apr 2 2025 23:03:39 for ILIAS by
1.8.13 (using
Doxyfile
)