ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
RatingCategoryTest Class Reference

Test peer reviews. More...

+ Inheritance diagram for RatingCategoryTest:
+ Collaboration diagram for RatingCategoryTest:

Public Member Functions

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

Protected Member Functions

 tearDown ()
 

Detailed Description

Test peer reviews.

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

Definition at line 28 of file RatingCategoryTest.php.

Member Function Documentation

◆ tearDown()

RatingCategoryTest::tearDown ( )
protected

Definition at line 30 of file RatingCategoryTest.php.

30 : void
31 {
32 }

◆ testRatingCategoryProperties()

RatingCategoryTest::testRatingCategoryProperties ( )

Test if each rater has $num_assignments peers.

Definition at line 37 of file RatingCategoryTest.php.

37 : void
38 {
39 $database = $this->getMockBuilder(ilDBInterface::class)->getMock();
40
41 $rating_category = new ilRatingCategory(
42 null,
43 $database
44 );
45
46 $rating_category->setTitle("title");
47 $rating_category->setDescription("description");
48 $rating_category->setId(1);
49 $rating_category->setParentId(2);
50 $rating_category->setPosition(10);
51
52 $this->assertEquals(
53 "title",
54 $rating_category->getTitle()
55 );
56
57 $this->assertEquals(
58 "description",
59 $rating_category->getDescription()
60 );
61
62 $this->assertEquals(
63 1,
64 $rating_category->getId()
65 );
66
67 $this->assertEquals(
68 2,
69 $rating_category->getParentId()
70 );
71
72 $this->assertEquals(
73 10,
74 $rating_category->getPosition()
75 );
76 }
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: