ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
MetaTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\LegalDocuments\test\ContainerMock;
26use PHPUnit\Framework\TestCase;
27
28require_once __DIR__ . '/../ContainerMock.php';
29
30class MetaTest extends TestCase
31{
32 use ContainerMock;
33
34 public function testConstruct(): void
35 {
36 $this->assertInstanceOf(Meta::class, new Meta(8, $this->mock(Edit::class), $this->mock(Edit::class)));
37 }
38
39 public function testGetter(): void
40 {
41 $this->assertGetter(Meta::class, [
42 'sorting' => 348,
43 'lastModification' => $this->mock(Edit::class),
44 'creation' => $this->mock(Edit::class),
45 ]);
46 }
47}