ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilQTISectionTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
23 
24 class ilQTISectionTest extends TestCase
25 {
26  public function testConstruct(): void
27  {
28  $this->assertInstanceOf(ilQTISection::class, new ilQTISection());
29  }
30 
31  public function testSetGetIdent(): void
32  {
33  $instance = new ilQTISection();
34  $instance->setIdent('Some input.');
35  $this->assertEquals('Some input.', $instance->getIdent());
36  }
37 
38  public function testSetGetTitle(): void
39  {
40  $instance = new ilQTISection();
41  $instance->setTitle('Some input.');
42  $this->assertEquals('Some input.', $instance->getTitle());
43  }
44 
45  public function testSetGetXmllang(): void
46  {
47  $instance = new ilQTISection();
48  $instance->setXmllang('Some input.');
49  $this->assertEquals('Some input.', $instance->getXmllang());
50  }
51 
52  public function testSetGetComment(): void
53  {
54  $instance = new ilQTISection();
55  $instance->setComment('Some input.');
56  $this->assertEquals('Some input.', $instance->getComment());
57  }
58 }