ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 25 of file TaxAssignmentTest.php.

Member Function Documentation

◆ setUp()

TaxAssignmentTest::setUp ( )
protected

Definition at line 29 of file TaxAssignmentTest.php.

29  : void
30  {
31  parent::setUp();
32  }

◆ tearDown()

TaxAssignmentTest::tearDown ( )
protected

Definition at line 34 of file TaxAssignmentTest.php.

34  : void
35  {
36  }

◆ testNewTaxAssignment()

TaxAssignmentTest::testNewTaxAssignment ( )

Test if each rater has $num_assignments peers.

Definition at line 41 of file TaxAssignmentTest.php.

41  : 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  }
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: