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