ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
EditTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\LegalDocuments\test\ContainerMock;
24use PHPUnit\Framework\TestCase;
26use DateTimeImmutable;
27
28require_once __DIR__ . '/../ContainerMock.php';
29
30class 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}