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