ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestVirtualSequenceTest Class Reference

Class ilTestVirtualSequenceTest. More...

+ Inheritance diagram for ilTestVirtualSequenceTest:
+ Collaboration diagram for ilTestVirtualSequenceTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testActiveId ()
 

Protected Member Functions

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

Private Attributes

ilTestVirtualSequence $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

Member Function Documentation

◆ setUp()

ilTestVirtualSequenceTest::setUp ( )
protected

Definition at line 29 of file ilTestVirtualSequenceTest.php.

29  : void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestVirtualSequence(
34  $this->createMock(ilDBInterface::class),
35  $this->getTestObjMock(),
36  $this->createMock(ilTestSequenceFactory::class)
37  );
38  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestVirtualSequenceTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 40 of file ilTestVirtualSequenceTest.php.

40  : void
41  {
42  $this->assertInstanceOf(ilTestVirtualSequence::class, $this->testObj);
43  }

◆ testActiveId()

ilTestVirtualSequenceTest::testActiveId ( )

Definition at line 45 of file ilTestVirtualSequenceTest.php.

45  : void
46  {
47  $active_id = 12;
48  $this->testObj->setActiveId($active_id);
49  $this->assertEquals($active_id, $this->testObj->getActiveId());
50  }

Field Documentation

◆ $testObj

ilTestVirtualSequence ilTestVirtualSequenceTest::$testObj
private

Definition at line 27 of file ilTestVirtualSequenceTest.php.


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