ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
TaxAssignmentTest.php
Go to the documentation of this file.
1<?php
2
19use PHPUnit\Framework\TestCase;
20
25class TaxAssignmentTest extends TestCase
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.
testNewTaxAssignment()
Test if each rater has $num_assignments peers.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...