ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
SettingsParticipantFunctionalityTest Class Reference
+ Inheritance diagram for SettingsParticipantFunctionalityTest:
+ Collaboration diagram for SettingsParticipantFunctionalityTest:

Public Member Functions

 testGetAndWithUsePreviousAnswerAllowed (bool $io)
 
 testGetAndWithSuspendTestAllowed (bool $io)
 
 testGetAndWithPostponedQuestionsMoveToEnd (bool $io)
 
 testGetAndWithQuestionListEnabled (bool $io)
 
 testGetAndWithUsrPassOverviewMode (int $io)
 
 testGetAndWithQuestionMarkingEnabled (bool $io)
 
- Public Member Functions inherited from ilTestBaseTestCase
 createInstanceOf (string $class_name, array $explicit_parameters=[])
 
 createTraitInstanceOf (string $class_name, array $explicit_parameters=[])
 

Static Public Member Functions

static getAndWithUsePreviousAnswerAllowedDataProvider ()
 
static getAndWithSuspendTestAllowedDataProvider ()
 
static getAndWithPostponedQuestionsMoveToEndDataProvider ()
 
static getAndWithQuestionListEnabledDataProvider ()
 
static getAndWithUsrPassOverviewModeDataProvider ()
 
static getAndWithUsrPassOverviewEnabledDataProvider ()
 
- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 
static getNonPublicPropertyValue (object $obj, string $name)
 

Additional Inherited Members

- Data Fields inherited from ilTestBaseTestCase
const string MOCKED_METHOD_WITHOUT_OUTPUT = 'MOCKED_METHOD_WITHOUT_OUTPUT'
 
const string DYNAMIC_CLASS = 'DynamicClass'
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 
Container $backup_dic = null
 
- Static Protected Attributes inherited from ilTestBaseTestCase
static int $DYNAMIC_CLASS_COUNT = 0
 

Detailed Description

Definition at line 23 of file SettingsParticipantFunctionalityTest.php.

Member Function Documentation

◆ getAndWithPostponedQuestionsMoveToEndDataProvider()

static SettingsParticipantFunctionalityTest::getAndWithPostponedQuestionsMoveToEndDataProvider ( )
static

Definition at line 68 of file SettingsParticipantFunctionalityTest.php.

68  : array
69  {
70  return [
71  [true],
72  [false]
73  ];
74  }

◆ getAndWithQuestionListEnabledDataProvider()

static SettingsParticipantFunctionalityTest::getAndWithQuestionListEnabledDataProvider ( )
static

Definition at line 85 of file SettingsParticipantFunctionalityTest.php.

85  : array
86  {
87  return [
88  [true],
89  [false]
90  ];
91  }

◆ getAndWithSuspendTestAllowedDataProvider()

static SettingsParticipantFunctionalityTest::getAndWithSuspendTestAllowedDataProvider ( )
static

Definition at line 51 of file SettingsParticipantFunctionalityTest.php.

51  : array
52  {
53  return [
54  [true],
55  [false]
56  ];
57  }

◆ getAndWithUsePreviousAnswerAllowedDataProvider()

static SettingsParticipantFunctionalityTest::getAndWithUsePreviousAnswerAllowedDataProvider ( )
static

Definition at line 34 of file SettingsParticipantFunctionalityTest.php.

34  : array
35  {
36  return [
37  [true],
38  [false]
39  ];
40  }

◆ getAndWithUsrPassOverviewEnabledDataProvider()

static SettingsParticipantFunctionalityTest::getAndWithUsrPassOverviewEnabledDataProvider ( )
static

Definition at line 121 of file SettingsParticipantFunctionalityTest.php.

121  : array
122  {
123  return [
124  [true],
125  [false]
126  ];
127  }

◆ getAndWithUsrPassOverviewModeDataProvider()

static SettingsParticipantFunctionalityTest::getAndWithUsrPassOverviewModeDataProvider ( )
static

Definition at line 102 of file SettingsParticipantFunctionalityTest.php.

102  : array
103  {
104  return [
105  [-1],
106  [0],
107  [1]
108  ];
109  }

◆ testGetAndWithPostponedQuestionsMoveToEnd()

SettingsParticipantFunctionalityTest::testGetAndWithPostponedQuestionsMoveToEnd ( bool  $io)

Definition at line 60 of file SettingsParticipantFunctionalityTest.php.

60  : void
61  {
62  $Settings_participant_functionality = (new SettingsParticipantFunctionality(0))->withPostponedQuestionsMoveToEnd($io);
63 
64  $this->assertInstanceOf(SettingsParticipantFunctionality::class, $Settings_participant_functionality);
65  $this->assertEquals($io, $Settings_participant_functionality->getPostponedQuestionsMoveToEnd());
66  }

◆ testGetAndWithQuestionListEnabled()

SettingsParticipantFunctionalityTest::testGetAndWithQuestionListEnabled ( bool  $io)

Definition at line 77 of file SettingsParticipantFunctionalityTest.php.

77  : void
78  {
79  $Settings_participant_functionality = (new SettingsParticipantFunctionality(0))->withQuestionListEnabled($io);
80 
81  $this->assertInstanceOf(SettingsParticipantFunctionality::class, $Settings_participant_functionality);
82  $this->assertEquals($io, $Settings_participant_functionality->getQuestionListEnabled());
83  }

◆ testGetAndWithQuestionMarkingEnabled()

SettingsParticipantFunctionalityTest::testGetAndWithQuestionMarkingEnabled ( bool  $io)

Definition at line 112 of file SettingsParticipantFunctionalityTest.php.

112  : void
113  {
114  $Settings_participant_functionality = (new SettingsParticipantFunctionality(0));
115  $Settings_participant_functionality = $Settings_participant_functionality->withQuestionMarkingEnabled($io);
116 
117  $this->assertInstanceOf(SettingsParticipantFunctionality::class, $Settings_participant_functionality);
118  $this->assertEquals($io, $Settings_participant_functionality->getQuestionMarkingEnabled());
119  }

◆ testGetAndWithSuspendTestAllowed()

SettingsParticipantFunctionalityTest::testGetAndWithSuspendTestAllowed ( bool  $io)

Definition at line 43 of file SettingsParticipantFunctionalityTest.php.

43  : void
44  {
45  $Settings_participant_functionality = (new SettingsParticipantFunctionality(0))->withSuspendTestAllowed($io);
46 
47  $this->assertInstanceOf(SettingsParticipantFunctionality::class, $Settings_participant_functionality);
48  $this->assertEquals($io, $Settings_participant_functionality->getSuspendTestAllowed());
49  }

◆ testGetAndWithUsePreviousAnswerAllowed()

SettingsParticipantFunctionalityTest::testGetAndWithUsePreviousAnswerAllowed ( bool  $io)

Definition at line 26 of file SettingsParticipantFunctionalityTest.php.

26  : void
27  {
28  $Settings_participant_functionality = (new SettingsParticipantFunctionality(0))->withUsePreviousAnswerAllowed($io);
29 
30  $this->assertInstanceOf(SettingsParticipantFunctionality::class, $Settings_participant_functionality);
31  $this->assertEquals($io, $Settings_participant_functionality->getUsePreviousAnswerAllowed());
32  }

◆ testGetAndWithUsrPassOverviewMode()

SettingsParticipantFunctionalityTest::testGetAndWithUsrPassOverviewMode ( int  $io)

Definition at line 94 of file SettingsParticipantFunctionalityTest.php.

94  : void
95  {
96  $Settings_participant_functionality = (new SettingsParticipantFunctionality(0))->withUsrPassOverviewMode($io);
97 
98  $this->assertInstanceOf(SettingsParticipantFunctionality::class, $Settings_participant_functionality);
99  $this->assertEquals($io, $Settings_participant_functionality->getUsrPassOverviewMode());
100  }

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