ILIAS
trunk Revision v11.0_alpha-2658-ge2404539063
◀ ilDoc Overview
DocumentContentTest.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\test\ContainerMock
;
24
use
PHPUnit\Framework\TestCase
;
25
use
ILIAS\LegalDocuments\Value\DocumentContent
;
26
27
require_once __DIR__ .
'/../ContainerMock.php'
;
28
29
class
DocumentContentTest
extends
TestCase
30
{
31
use
ContainerMock
;
32
33
public
function
testConstruct
(): void
34
{
35
$this->assertInstanceOf(DocumentContent::class,
new
DocumentContent
(
'foo'
,
'bar'
,
'baz'
));
36
}
37
38
public
function
testGetter
(): void
39
{
40
$this->assertGetter(DocumentContent::class, [
41
'type'
=>
'foo'
,
42
'title'
=>
'bar'
,
43
'value'
=>
'baz'
,
44
]);
45
}
46
}
ContainerMock
ILIAS\LegalDocuments\test\Value
Definition:
CriterionContentTest.php:21
DocumentContent
ILIAS\LegalDocuments\test\Value\DocumentContentTest\testConstruct
testConstruct()
Definition:
DocumentContentTest.php:33
ILIAS\LegalDocuments\test\Value\DocumentContentTest\testGetter
testGetter()
Definition:
DocumentContentTest.php:38
ContainerMock
ILIAS\LegalDocuments\Value\DocumentContent
Definition:
DocumentContent.php:23
ILIAS\LegalDocuments\test\Value\DocumentContentTest
Definition:
DocumentContentTest.php:29
TestCase
components
ILIAS
LegalDocuments
tests
Value
DocumentContentTest.php
Generated on Tue Sep 2 2025 23:03:22 for ILIAS by
1.8.13 (using
Doxyfile
)