ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestReindexedSequencePositionMapTest.php
Go to the documentation of this file.
1 <?php
2 
24 {
26 
27  protected function setUp(): void
28  {
29  parent::setUp();
30 
31  $this->testObj = new ilTestReindexedSequencePositionMap();
32  }
33 
35  {
36  $this->assertInstanceOf(ilTestReindexedSequencePositionMap::class, $this->testObj);
37  }
38 
39  public function testSequenceCanBeSetAndRetrieved(): void
40  {
41  $oldSequencePosition = 1;
42  $newSequencePosition = 2;
43  $this->testObj->addPositionMapping($oldSequencePosition, $newSequencePosition);
44  $this->assertEquals($newSequencePosition, $this->testObj->getNewSequencePosition($oldSequencePosition));
45  }
46 
48  {
49  $this->assertNull($this->testObj->getNewSequencePosition(5));
50  }
51 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...