ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestReindexedSequencePositionMapTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilTestReindexedSequencePositionMapTest:
+ Collaboration diagram for ilTestReindexedSequencePositionMapTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testSequenceCanBeSetAndRetrieved ()
 
 testNullIsReturnedIfSequenceDoesNotExistInMap ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 

Private Attributes

ilTestReindexedSequencePositionMap $testObj
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilTestReindexedSequencePositionMapTest

Author
Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de

Definition at line 23 of file ilTestReindexedSequencePositionMapTest.php.

Member Function Documentation

◆ setUp()

ilTestReindexedSequencePositionMapTest::setUp ( )
protected

Definition at line 27 of file ilTestReindexedSequencePositionMapTest.php.

27  : void
28  {
29  parent::setUp();
30 
31  $this->testObj = new ilTestReindexedSequencePositionMap();
32  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestReindexedSequencePositionMapTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 34 of file ilTestReindexedSequencePositionMapTest.php.

34  : void
35  {
36  $this->assertInstanceOf(ilTestReindexedSequencePositionMap::class, $this->testObj);
37  }

◆ testNullIsReturnedIfSequenceDoesNotExistInMap()

ilTestReindexedSequencePositionMapTest::testNullIsReturnedIfSequenceDoesNotExistInMap ( )

Definition at line 47 of file ilTestReindexedSequencePositionMapTest.php.

47  : void
48  {
49  $this->assertNull($this->testObj->getNewSequencePosition(5));
50  }

◆ testSequenceCanBeSetAndRetrieved()

ilTestReindexedSequencePositionMapTest::testSequenceCanBeSetAndRetrieved ( )

Definition at line 39 of file ilTestReindexedSequencePositionMapTest.php.

39  : void
40  {
41  $oldSequencePosition = 1;
42  $newSequencePosition = 2;
43  $this->testObj->addPositionMapping($oldSequencePosition, $newSequencePosition);
44  $this->assertEquals($newSequencePosition, $this->testObj->getNewSequencePosition($oldSequencePosition));
45  }

Field Documentation

◆ $testObj

ilTestReindexedSequencePositionMap ilTestReindexedSequencePositionMapTest::$testObj
private

Definition at line 25 of file ilTestReindexedSequencePositionMapTest.php.


The documentation for this class was generated from the following file: