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
ilStudyProgrammeAutoMembershipsSourceTest.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
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
);
52
$this->assertInstanceOf(
53
ilStudyProgrammeAutoMembershipSource::class,
54
$ams
55
);
56
return
$ams;
57
}
58
62
public
function
testGetPrgObjId
(
ilStudyProgrammeAutoMembershipSource
$ams): void
63
{
64
$this->assertEquals(
65
$this->prg_obj_id,
66
$ams->
getPrgObjId
()
67
);
68
}
69
73
public
function
testGetSourceType
(
ilStudyProgrammeAutoMembershipSource
$ams): void
74
{
75
$this->assertEquals(
76
$this->source_type,
77
$ams->
getSourceType
()
78
);
79
}
83
public
function
testGetSourceId
(
ilStudyProgrammeAutoMembershipSource
$ams): void
84
{
85
$this->assertEquals(
86
$this->source_id,
87
$ams->
getSourceId
()
88
);
89
}
90
94
public
function
testGetLastEditorId
(
ilStudyProgrammeAutoMembershipSource
$ams): void
95
{
96
$this->assertEquals(
97
$this->usr_id,
98
$ams->
getLastEditorId
()
99
);
100
}
101
105
public
function
testGetLastEdited
(
ilStudyProgrammeAutoMembershipSource
$ams): void
106
{
107
$this->assertEquals(
108
$this->dat,
109
$ams->
getLastEdited
()
110
);
111
}
112
}
ilStudyProgrammeAutoMembershipsSourceTest\setUp
setUp()
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:32
DateTimeImmutable
ilStudyProgrammeAutoMembershipSource\getSourceId
getSourceId()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:82
ilStudyProgrammeAutoMembershipsSourceTest\$prg_obj_id
int $prg_obj_id
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:25
ilStudyProgrammeAutoMembershipsSourceTest\testGetSourceId
testGetSourceId(ilStudyProgrammeAutoMembershipSource $ams)
testConstruction
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:83
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:72
ilStudyProgrammeAutoMembershipsSourceTest\$source_id
int $source_id
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:27
ilStudyProgrammeAutoMembershipsSourceTest\testGetLastEditorId
testGetLastEditorId(ilStudyProgrammeAutoMembershipSource $ams)
testConstruction
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:94
ilStudyProgrammeAutoMembershipsSourceTest\testGetLastEdited
testGetLastEdited(ilStudyProgrammeAutoMembershipSource $ams)
testConstruction
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:105
ilStudyProgrammeAutoMembershipSource
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:26
ilStudyProgrammeAutoMembershipsSourceTest\$source_type
string $source_type
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:26
ilStudyProgrammeAutoMembershipSource\getLastEditorId
getLastEditorId()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:92
ilStudyProgrammeAutoMembershipsSourceTest\testGetPrgObjId
testGetPrgObjId(ilStudyProgrammeAutoMembershipSource $ams)
testConstruction
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:62
ilStudyProgrammeAutoMembershipSource\getSourceType
getSourceType()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:77
ilStudyProgrammeAutoMembershipsSourceTest\$usr_id
int $usr_id
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:29
ilStudyProgrammeAutoMembershipsSourceTest\testGetSourceType
testGetSourceType(ilStudyProgrammeAutoMembershipSource $ams)
testConstruction
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:73
ilStudyProgrammeAutoMembershipSource\getLastEdited
getLastEdited()
Definition:
class.ilStudyProgrammeAutoMembershipSource.php:97
ilStudyProgrammeAutoMembershipsSourceTest\testConstruction
testConstruction()
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:42
TestCase
ilStudyProgrammeAutoMembershipsSourceTest
Definition:
ilStudyProgrammeAutoMembershipsSourceTest.php:23
Modules
StudyProgramme
test
model
AutoMemberships
ilStudyProgrammeAutoMembershipsSourceTest.php
Generated on Fri Apr 4 2025 22:01:57 for ILIAS by
1.8.13 (using
Doxyfile
)