ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestRandomQuestionSetNonAvailablePoolTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
28 
29  protected function setUp(): void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestRandomQuestionSetNonAvailablePool();
34  }
35 
37  {
38  $this->assertInstanceOf(ilTestRandomQuestionSetNonAvailablePool::class, $this->testObj);
39  }
40 
41  public function testId(): void
42  {
43  $id = 222;
44  $this->testObj->setId($id);
45  $this->assertEquals($id, $this->testObj->getId());
46  }
47 
48  public function testTitle(): void
49  {
50  $title = 'Test';
51  $this->testObj->setTitle($title);
52  $this->assertEquals($title, $this->testObj->getTitle());
53  }
54 
55  public function testPath(): void
56  {
57  $path = 'Test';
58  $this->testObj->setPath($path);
59  $this->assertEquals($path, $this->testObj->getPath());
60  }
61 
62  public function testUnavailabilityStatus(): void
63  {
64  $unavailabilityStatus = 'Test';
65  $this->testObj->setUnavailabilityStatus($unavailabilityStatus);
66  $this->assertEquals($unavailabilityStatus, $this->testObj->getUnavailabilityStatus());
67  }
68 }
$path
Definition: ltiservices.php:29
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
Class ilTestRandomQuestionSetNonAvailablePoolTest.