ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ 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
HistoryTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\LegalDocuments\test\Value
;
22
23
use
ILIAS\LegalDocuments\Value\CriterionContent
;
24
use
ILIAS\LegalDocuments\test\ContainerMock
;
25
use
ILIAS\LegalDocuments\Value\DocumentContent
;
26
use
ILIAS\LegalDocuments\Value\Edit
;
27
use
ILIAS\LegalDocuments\Value\Document
;
28
use
PHPUnit\Framework\TestCase
;
29
use
ILIAS\LegalDocuments\Value\History
;
30
31
require_once __DIR__ .
'/../ContainerMock.php'
;
32
33
class
HistoryTest
extends
TestCase
34
{
35
use
ContainerMock
;
36
37
public
function
testConstruct
(): void
38
{
39
$this->assertInstanceOf(History::class,
new
History
($this->mock(Document::class), $this->mock(Edit::class), [], $this->mock(DocumentContent::class)));
40
}
41
42
public
function
testGetter
(): void
43
{
44
$this->assertGetter(History::class, [
45
'currentDocument'
=> $this->mock(Document::class),
46
'creation'
=> $this->mock(Edit::class),
47
'criteriaContent'
=> [$this->mock(CriterionContent::class)],
48
'documentContent'
=> $this->mock(DocumentContent::class),
49
]);
50
}
51
}
ContainerMock
ILIAS\LegalDocuments\test\Value
Definition:
CriterionContentTest.php:21
DocumentContent
ILIAS\LegalDocuments\Value\History
Definition:
History.php:23
CriterionContent
ILIAS\LegalDocuments\test\Value\HistoryTest\testConstruct
testConstruct()
Definition:
HistoryTest.php:37
ILIAS\LegalDocuments\test\Value\HistoryTest
Definition:
HistoryTest.php:33
Edit
ContainerMock
History
ILIAS\LegalDocuments\test\Value\HistoryTest\testGetter
testGetter()
Definition:
HistoryTest.php:42
Document
TestCase
components
ILIAS
LegalDocuments
tests
Value
HistoryTest.php
Generated on Sun Apr 6 2025 23:03:36 for ILIAS by
1.8.13 (using
Doxyfile
)