ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestReindexedSequencePositionMapTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
26 {
28 
29  protected function setUp(): void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestReindexedSequencePositionMap();
34  }
35 
37  {
38  $this->assertInstanceOf(ilTestReindexedSequencePositionMap::class, $this->testObj);
39  }
40 
41  public function testSequenceCanBeSetAndRetrieved(): void
42  {
43  $this->testObj->addPositionMapping(1, 2);
44  self::assertEquals(2, $this->testObj->getNewSequencePosition(1));
45  }
46 
48  {
49  self::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...
Class ilTestBaseClass.