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

Public Member Functions

 testConstruct ()
 
 testGetAndWithHighscoreEnabled (bool $IO)
 
 testGetAndWithHighscoreOwnTable (bool $IO)
 
 testGetAndWithHighscoreTopTable (bool $IO)
 
 testGetAndWithHighscoreTopNum (int $IO)
 
 testGetAndWithHighscoreAnon (bool $IO)
 
 testGetAndWithHighscoreAchievedTS (bool $IO)
 
 testGetAndWithHighscoreScore (bool $IO)
 
 testGetAndWithHighscorePercentage (bool $IO)
 
 testGetAndWithHighscoreWTime (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 getAndWithHighscoreEnabledDataProvider ()
 
static getAndWithHighscoreOwnTableDataProvider ()
 
static getAndWithHighscoreTopTableDataProvider ()
 
static getAndWithHighscoreTopNumDataProvider ()
 
static getAndWithHighscoreAnonDataProvider ()
 
static getAndWithHighscoreAchievedTSDataProvider ()
 
static getAndWithHighscoreScoreDataProvider ()
 
static getAndWithHighscorePercentageDataProvider ()
 
static getAndWithHighscoreWTimeDataProvider ()
 
- 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 24 of file SettingsGamificationTest.php.

Member Function Documentation

◆ getAndWithHighscoreAchievedTSDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreAchievedTSDataProvider ( )
static

Definition at line 121 of file SettingsGamificationTest.php.

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

◆ getAndWithHighscoreAnonDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreAnonDataProvider ( )
static

Definition at line 105 of file SettingsGamificationTest.php.

105  : array
106  {
107  return [
108  [true],
109  [false],
110  ];
111  }

◆ getAndWithHighscoreEnabledDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreEnabledDataProvider ( )
static

Definition at line 40 of file SettingsGamificationTest.php.

40  : array
41  {
42  return [
43  [true],
44  [false]
45  ];
46  }

◆ getAndWithHighscoreOwnTableDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreOwnTableDataProvider ( )
static

Definition at line 56 of file SettingsGamificationTest.php.

56  : array
57  {
58  return [
59  [true],
60  [false]
61  ];
62  }

◆ getAndWithHighscorePercentageDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscorePercentageDataProvider ( )
static

Definition at line 153 of file SettingsGamificationTest.php.

153  : array
154  {
155  return [
156  [true],
157  [false]
158  ];
159  }

◆ getAndWithHighscoreScoreDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreScoreDataProvider ( )
static

Definition at line 137 of file SettingsGamificationTest.php.

137  : array
138  {
139  return [
140  [true],
141  [false]
142  ];
143  }

◆ getAndWithHighscoreTopNumDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreTopNumDataProvider ( )
static

Definition at line 88 of file SettingsGamificationTest.php.

88  : array
89  {
90  return [
91  [-1],
92  [0],
93  [1]
94  ];
95  }

◆ getAndWithHighscoreTopTableDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreTopTableDataProvider ( )
static

Definition at line 72 of file SettingsGamificationTest.php.

72  : array
73  {
74  return [
75  [true],
76  [false]
77  ];
78  }

◆ getAndWithHighscoreWTimeDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreWTimeDataProvider ( )
static

Definition at line 169 of file SettingsGamificationTest.php.

169  : array
170  {
171  return [
172  [true],
173  [false]
174  ];
175  }

◆ testConstruct()

ScoreReporting\SettingsGamificationTest::testConstruct ( )

Definition at line 26 of file SettingsGamificationTest.php.

26  : void
27  {
28  $gamificationTest = new SettingsGamification(0);
29  $this->assertInstanceOf(SettingsGamification::class, $gamificationTest);
30  }

◆ testGetAndWithHighscoreAchievedTS()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreAchievedTS ( bool  $IO)

Definition at line 114 of file SettingsGamificationTest.php.

114  : void
115  {
116  $gamificationTest = new SettingsGamification(0);
117  $gamificationTest = $gamificationTest->withHighscoreAchievedTS($IO);
118  $this->assertEquals($IO, $gamificationTest->getHighscoreAchievedTS());
119  }

◆ testGetAndWithHighscoreAnon()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreAnon ( bool  $IO)

Definition at line 98 of file SettingsGamificationTest.php.

98  : void
99  {
100  $gamificationTest = new SettingsGamification(0);
101  $gamificationTest = $gamificationTest->withHighscoreAnon($IO);
102  $this->assertEquals($IO, $gamificationTest->getHighscoreAnon());
103  }

◆ testGetAndWithHighscoreEnabled()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreEnabled ( bool  $IO)

Definition at line 33 of file SettingsGamificationTest.php.

33  : void
34  {
35  $gamificationTest = new SettingsGamification(0);
36  $gamificationTest = $gamificationTest->withHighscoreEnabled($IO);
37  $this->assertEquals($IO, $gamificationTest->getHighscoreEnabled());
38  }

◆ testGetAndWithHighscoreOwnTable()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreOwnTable ( bool  $IO)

Definition at line 49 of file SettingsGamificationTest.php.

49  : void
50  {
51  $gamificationTest = new SettingsGamification(0);
52  $gamificationTest = $gamificationTest->withHighscoreOwnTable($IO);
53  $this->assertEquals($IO, $gamificationTest->getHighscoreOwnTable());
54  }

◆ testGetAndWithHighscorePercentage()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscorePercentage ( bool  $IO)

Definition at line 146 of file SettingsGamificationTest.php.

146  : void
147  {
148  $gamificationTest = new SettingsGamification(0);
149  $gamificationTest = $gamificationTest->withHighscorePercentage($IO);
150  $this->assertEquals($IO, $gamificationTest->getHighscorePercentage());
151  }

◆ testGetAndWithHighscoreScore()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreScore ( bool  $IO)

Definition at line 130 of file SettingsGamificationTest.php.

130  : void
131  {
132  $gamificationTest = new SettingsGamification(0);
133  $gamificationTest = $gamificationTest->withHighscoreScore($IO);
134  $this->assertEquals($IO, $gamificationTest->getHighscoreScore());
135  }

◆ testGetAndWithHighscoreTopNum()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreTopNum ( int  $IO)

Definition at line 81 of file SettingsGamificationTest.php.

81  : void
82  {
83  $gamificationTest = new SettingsGamification(0);
84  $gamificationTest = $gamificationTest->withHighscoreTopNum($IO);
85  $this->assertEquals($IO, $gamificationTest->getHighscoreTopNum());
86  }

◆ testGetAndWithHighscoreTopTable()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreTopTable ( bool  $IO)

Definition at line 65 of file SettingsGamificationTest.php.

65  : void
66  {
67  $gamificationTest = new SettingsGamification(0);
68  $gamificationTest = $gamificationTest->withHighscoreTopTable($IO);
69  $this->assertEquals($IO, $gamificationTest->getHighscoreTopTable());
70  }

◆ testGetAndWithHighscoreWTime()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreWTime ( bool  $IO)

Definition at line 162 of file SettingsGamificationTest.php.

162  : void
163  {
164  $gamificationTest = new SettingsGamification(0);
165  $gamificationTest = $gamificationTest->withHighscoreWTime($IO);
166  $this->assertEquals($IO, $gamificationTest->getHighscoreWTime());
167  }

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