ILIAS  release_8 Revision v8.23
TaxAssignmentTest.php
Go to the documentation of this file.
1 <?php
2 
4 
9 class TaxAssignmentTest extends TestCase
10 {
11  //protected $backupGlobals = false;
12 
13  protected function setUp(): void
14  {
15  parent::setUp();
16  }
17 
18  protected function tearDown(): void
19  {
20  }
21 
25  public function testNewTaxAssignment(): void
26  {
27  $database = $this->getMockBuilder(ilDBInterface::class)->getMock();
28 
29  $tax_assignment = new ilTaxNodeAssignment(
30  "comp_id",
31  1,
32  "item_type",
33  2,
34  $database
35  );
36 
37  $this->assertEquals(
38  $tax_assignment->getComponentId(),
39  "comp_id"
40  );
41 
42  $this->assertEquals(
43  $tax_assignment->getObjectId(),
44  1
45  );
46 
47  $this->assertEquals(
48  $tax_assignment->getItemType(),
49  "item_type"
50  );
51 
52  $this->assertEquals(
53  $tax_assignment->getTaxonomyId(),
54  2
55  );
56  }
57 }
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.