ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilQTIDisplayfeedbackTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use PHPUnit\Framework\TestCase;
22
23class ilQTIDisplayfeedbackTest extends TestCase
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}