ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
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 Wed Sep 3 2025 23:03:21 for ILIAS by
1.8.13 (using
Doxyfile
)