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