ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilQTIDisplayfeedbackTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 {
25  public function testConstruct(): void
26  {
27  $this->assertInstanceOf(ilQTIDisplayfeedback::class, new ilQTIDisplayfeedback());
28  }
29 
30  public function testSetGetFeedbacktype(): void
31  {
32  $instance = new ilQTIDisplayfeedback();
33  $instance->setFeedbacktype('Some input.');
34  $this->assertEquals('Some input.', $instance->getFeedbacktype());
35  }
36 
37  public function testSetGetLinkrefid(): void
38  {
39  $instance = new ilQTIDisplayfeedback();
40  $instance->setLinkrefid('Some input.');
41  $this->assertEquals('Some input.', $instance->getLinkrefid());
42  }
43 
44  public function testSetGetContent(): void
45  {
46  $instance = new ilQTIDisplayfeedback();
47  $instance->setContent('Some input.');
48  $this->assertEquals('Some input.', $instance->getContent());
49  }
50 }