ILIAS  release_8 Revision v8.24
ilQTIDisplayfeedbackTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22use PHPUnit\Framework\TestCase;
23
24class ilQTIDisplayfeedbackTest extends TestCase
25{
26 public function testConstruct(): void
27 {
28 $this->assertInstanceOf(ilQTIDisplayfeedback::class, new ilQTIDisplayfeedback());
29 }
30
31 public function testSetGetFeedbacktype(): void
32 {
33 $instance = new ilQTIDisplayfeedback();
34 $instance->setFeedbacktype('Some input.');
35 $this->assertEquals('Some input.', $instance->getFeedbacktype());
36 }
37
38 public function testSetGetLinkrefid(): void
39 {
40 $instance = new ilQTIDisplayfeedback();
41 $instance->setLinkrefid('Some input.');
42 $this->assertEquals('Some input.', $instance->getLinkrefid());
43 }
44
45 public function testSetGetContent(): void
46 {
47 $instance = new ilQTIDisplayfeedback();
48 $instance->setContent('Some input.');
49 $this->assertEquals('Some input.', $instance->getContent());
50 }
51}