ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
TaxAssignmentTest.php
Go to the documentation of this file.
1 <?php
2 
20 
26 {
27  //protected $backupGlobals = false;
28 
29  protected function setUp(): void
30  {
31  parent::setUp();
32  }
33 
34  protected function tearDown(): void
35  {
36  }
37 
41  public function testNewTaxAssignment(): void
42  {
43  $database = $this->getMockBuilder(ilDBInterface::class)->getMock();
44 
45  $tax_assignment = new ilTaxNodeAssignment(
46  "comp_id",
47  1,
48  "item_type",
49  2,
50  $database
51  );
52 
53  $this->assertEquals(
54  $tax_assignment->getComponentId(),
55  "comp_id"
56  );
57 
58  $this->assertEquals(
59  $tax_assignment->getObjectId(),
60  1
61  );
62 
63  $this->assertEquals(
64  $tax_assignment->getItemType(),
65  "item_type"
66  );
67 
68  $this->assertEquals(
69  $tax_assignment->getTaxonomyId(),
70  2
71  );
72  }
73 }
Test peer reviews.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testNewTaxAssignment()
Test if each rater has $num_assignments peers.