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

Class ilTestQuestionHeaderBlockBuilderTest. More...

+ Inheritance diagram for ilTestQuestionHeaderBlockBuilderTest:
+ Collaboration diagram for ilTestQuestionHeaderBlockBuilderTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testHeaderMode ()
 
 testQuestionTitle ()
 
 testQuestionPoints ()
 
 testQuestionAnswered ()
 
 testQuestionPosition ()
 
 testQuestionCount ()
 
 testQuestionPostponed ()
 
 testQuestionRelatedObjectives ()
 

Protected Member Functions

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

Private Attributes

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

ilTestQuestionHeaderBlockBuilderTest::setUp ( )
protected

Definition at line 29 of file ilTestQuestionHeaderBlockBuilderTest.php.

29  : void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestQuestionHeaderBlockBuilder($this->createMock(ilLanguage::class));
34  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestQuestionHeaderBlockBuilderTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 36 of file ilTestQuestionHeaderBlockBuilderTest.php.

36  : void
37  {
38  $this->assertInstanceOf(ilTestQuestionHeaderBlockBuilder::class, $this->testObj);
39  }

◆ testHeaderMode()

ilTestQuestionHeaderBlockBuilderTest::testHeaderMode ( )

Definition at line 41 of file ilTestQuestionHeaderBlockBuilderTest.php.

41  : void
42  {
43  $headerMode = 12;
44  $this->testObj->setHeaderMode($headerMode);
45  $this->assertEquals($headerMode, $this->testObj->getHeaderMode());
46  }

◆ testQuestionAnswered()

ilTestQuestionHeaderBlockBuilderTest::testQuestionAnswered ( )

Definition at line 62 of file ilTestQuestionHeaderBlockBuilderTest.php.

62  : void
63  {
64  $this->testObj->setQuestionAnswered(false);
65  $this->assertFalse($this->testObj->isQuestionAnswered());
66 
67  $this->testObj->setQuestionAnswered(true);
68  $this->assertTrue($this->testObj->isQuestionAnswered());
69  }

◆ testQuestionCount()

ilTestQuestionHeaderBlockBuilderTest::testQuestionCount ( )

Definition at line 78 of file ilTestQuestionHeaderBlockBuilderTest.php.

78  : void
79  {
80  $questionCount = 20;
81  $this->testObj->setQuestionCount($questionCount);
82  $this->assertEquals($questionCount, $this->testObj->getQuestionCount());
83  }

◆ testQuestionPoints()

ilTestQuestionHeaderBlockBuilderTest::testQuestionPoints ( )

Definition at line 55 of file ilTestQuestionHeaderBlockBuilderTest.php.

55  : void
56  {
57  $questionPoints = 20.5;
58  $this->testObj->setQuestionPoints($questionPoints);
59  $this->assertEquals($questionPoints, $this->testObj->getQuestionPoints());
60  }

◆ testQuestionPosition()

ilTestQuestionHeaderBlockBuilderTest::testQuestionPosition ( )

Definition at line 71 of file ilTestQuestionHeaderBlockBuilderTest.php.

71  : void
72  {
73  $questionPosition = 20;
74  $this->testObj->setQuestionPosition($questionPosition);
75  $this->assertEquals($questionPosition, $this->testObj->getQuestionPosition());
76  }

◆ testQuestionPostponed()

ilTestQuestionHeaderBlockBuilderTest::testQuestionPostponed ( )

Definition at line 85 of file ilTestQuestionHeaderBlockBuilderTest.php.

85  : void
86  {
87  $this->testObj->setQuestionPostponed(false);
88  $this->assertFalse($this->testObj->isQuestionPostponed());
89 
90  $this->testObj->setQuestionPostponed(true);
91  $this->assertTrue($this->testObj->isQuestionPostponed());
92  }

◆ testQuestionRelatedObjectives()

ilTestQuestionHeaderBlockBuilderTest::testQuestionRelatedObjectives ( )

Definition at line 94 of file ilTestQuestionHeaderBlockBuilderTest.php.

94  : void
95  {
96  $questionRelatedObjectives = 'test';
97  $this->testObj->setQuestionRelatedObjectives($questionRelatedObjectives);
98  $this->assertEquals($questionRelatedObjectives, $this->testObj->getQuestionRelatedObjectives());
99  }

◆ testQuestionTitle()

ilTestQuestionHeaderBlockBuilderTest::testQuestionTitle ( )

Definition at line 48 of file ilTestQuestionHeaderBlockBuilderTest.php.

48  : void
49  {
50  $questionTitle = 'test';
51  $this->testObj->setQuestionTitle($questionTitle);
52  $this->assertEquals($questionTitle, $this->testObj->getQuestionTitle());
53  }

Field Documentation

◆ $testObj

ilTestQuestionHeaderBlockBuilder ilTestQuestionHeaderBlockBuilderTest::$testObj
private

Definition at line 27 of file ilTestQuestionHeaderBlockBuilderTest.php.


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