ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
DocumentTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
29 
30 require_once __DIR__ . '/../ContainerMock.php';
31 
32 class DocumentTest extends TestCase
33 {
34  use ContainerMock;
35 
36  public function testConstruct(): void
37  {
38  $this->assertInstanceOf(Document::class, new Document(47, $this->mock(Meta::class), $this->mock(DocumentContent::class), []));
39  }
40 
41  public function testGetter(): void
42  {
43  $this->assertGetter(Document::class, [
44  'id' => 80,
45  'meta' => $this->mock(Meta::class),
46  'content' => $this->mock(DocumentContent::class),
47  'criteria' => [$this->mock(Criterion::class), $this->mock(Criterion::class)],
48  ]);
49  }
50 }