ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestRandomQuestionSetStagingPoolQuestionListTest Class Reference

Class ilTestRandomQuestionSetStagingPoolQuestionListTest. More...

+ Inheritance diagram for ilTestRandomQuestionSetStagingPoolQuestionListTest:
+ Collaboration diagram for ilTestRandomQuestionSetStagingPoolQuestionListTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testTestObjId ()
 
 testTestId ()
 
 testPoolId ()
 
 testAddTaxonomyFilter ()
 
 testTypeFilter ()
 
 testLifecycleFilter ()
 

Protected Member Functions

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

Private Attributes

ilTestRandomQuestionSetStagingPoolQuestionList $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()

ilTestRandomQuestionSetStagingPoolQuestionListTest::setUp ( )
protected

Definition at line 29 of file ilTestRandomQuestionSetStagingPoolQuestionListTest.php.

29  : void
30  {
31  parent::setUp();
32 
34  $this->createMock(ilDBInterface::class),
35  $this->createMock(ilComponentRepository::class)
36  );
37  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestRandomQuestionSetStagingPoolQuestionListTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 39 of file ilTestRandomQuestionSetStagingPoolQuestionListTest.php.

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

◆ testAddTaxonomyFilter()

ilTestRandomQuestionSetStagingPoolQuestionListTest::testAddTaxonomyFilter ( )

Definition at line 65 of file ilTestRandomQuestionSetStagingPoolQuestionListTest.php.

65  : void
66  {
67  $taxId = 20;
68  $taxNodes = [134, 345];
69  $this->testObj->addTaxonomyFilter($taxId, $taxNodes);
70  $this->assertEquals([$taxId => $taxNodes], $this->testObj->getTaxonomyFilters());
71  }

◆ testLifecycleFilter()

ilTestRandomQuestionSetStagingPoolQuestionListTest::testLifecycleFilter ( )

Definition at line 80 of file ilTestRandomQuestionSetStagingPoolQuestionListTest.php.

80  : void
81  {
82  $expected = [
83  'Hello',
84  'World'
85  ];
86 
87  $this->testObj->setLifecycleFilter($expected);
88  $this->assertEquals($expected, $this->testObj->getLifecycleFilter());
89  }

◆ testPoolId()

ilTestRandomQuestionSetStagingPoolQuestionListTest::testPoolId ( )

Definition at line 58 of file ilTestRandomQuestionSetStagingPoolQuestionListTest.php.

58  : void
59  {
60  $poolId = 5;
61  $this->testObj->setPoolId($poolId);
62  $this->assertEquals($poolId, $this->testObj->getPoolId());
63  }

◆ testTestId()

ilTestRandomQuestionSetStagingPoolQuestionListTest::testTestId ( )

Definition at line 51 of file ilTestRandomQuestionSetStagingPoolQuestionListTest.php.

51  : void
52  {
53  $testId = 5;
54  $this->testObj->setTestId($testId);
55  $this->assertEquals($testId, $this->testObj->getTestId());
56  }

◆ testTestObjId()

ilTestRandomQuestionSetStagingPoolQuestionListTest::testTestObjId ( )

Definition at line 44 of file ilTestRandomQuestionSetStagingPoolQuestionListTest.php.

44  : void
45  {
46  $testObjId = 5;
47  $this->testObj->setTestObjId($testObjId);
48  $this->assertEquals($testObjId, $this->testObj->getTestObjId());
49  }

◆ testTypeFilter()

ilTestRandomQuestionSetStagingPoolQuestionListTest::testTypeFilter ( )

Definition at line 73 of file ilTestRandomQuestionSetStagingPoolQuestionListTest.php.

73  : void
74  {
75  $typeFilter = [547, 1023];
76  $this->testObj->setTypeFilter($typeFilter);
77  $this->assertEquals($typeFilter, $this->testObj->getTypeFilter());
78  }

Field Documentation

◆ $testObj

ilTestRandomQuestionSetStagingPoolQuestionList ilTestRandomQuestionSetStagingPoolQuestionListTest::$testObj
private

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