ILIAS  release_8 Revision v8.25
TaxAssignmentTest Class Reference

Test peer reviews. More...

+ Inheritance diagram for TaxAssignmentTest:
+ Collaboration diagram for TaxAssignmentTest:

Public Member Functions

 testNewTaxAssignment ()
 Test if each rater has $num_assignments peers. More...
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Detailed Description

Test peer reviews.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 9 of file TaxAssignmentTest.php.

Member Function Documentation

◆ setUp()

TaxAssignmentTest::setUp ( )
protected

Definition at line 13 of file TaxAssignmentTest.php.

13 : void
14 {
15 parent::setUp();
16 }

◆ tearDown()

TaxAssignmentTest::tearDown ( )
protected

Definition at line 18 of file TaxAssignmentTest.php.

18 : void
19 {
20 }

◆ testNewTaxAssignment()

TaxAssignmentTest::testNewTaxAssignment ( )

Test if each rater has $num_assignments peers.

Definition at line 25 of file TaxAssignmentTest.php.

25 : 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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

The documentation for this class was generated from the following file: