ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
DocumentContentTest.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;
26
27require_once __DIR__ . '/../ContainerMock.php';
28
29class 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}