ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ScoreReporting\SettingsGamificationTest Class Reference
+ Inheritance diagram for ScoreReporting\SettingsGamificationTest:
+ Collaboration diagram for ScoreReporting\SettingsGamificationTest:

Public Member Functions

 testConstruct ()
 
 testGetAndWithHighscoreEnabled (bool $IO)
 getAndWithHighscoreEnabledDataProvider More...
 
 testGetAndWithHighscoreOwnTable (bool $IO)
 getAndWithHighscoreOwnTableDataProvider More...
 
 testGetAndWithHighscoreTopTable (bool $IO)
 getAndWithHighscoreTopTableDataProvider More...
 
 testGetAndWithHighscoreTopNum (int $IO)
 getAndWithHighscoreTopNumDataProvider More...
 
 testGetAndWithHighscoreAnon (bool $IO)
 getAndWithHighscoreAnonDataProvider More...
 
 testGetAndWithHighscoreAchievedTS (bool $IO)
 getAndWithHighscoreAchievedTSDataProvider More...
 
 testGetAndWithHighscoreScore (bool $IO)
 getAndWithHighscoreScoreDataProvider More...
 
 testGetAndWithHighscorePercentage (bool $IO)
 getAndWithHighscorePercentageDataProvider More...
 
 testGetAndWithHighscoreHints (bool $IO)
 getAndWithHighscoreHintsDataProvider More...
 
 testGetAndWithHighscoreWTime (bool $IO)
 getAndWithHighscoreWTimeDataProvider More...
 

Static Public Member Functions

static getAndWithHighscoreEnabledDataProvider ()
 
static getAndWithHighscoreOwnTableDataProvider ()
 
static getAndWithHighscoreTopTableDataProvider ()
 
static getAndWithHighscoreTopNumDataProvider ()
 
static getAndWithHighscoreAnonDataProvider ()
 
static getAndWithHighscoreAchievedTSDataProvider ()
 
static getAndWithHighscoreScoreDataProvider ()
 
static getAndWithHighscorePercentageDataProvider ()
 
static getAndWithHighscoreHintsDataProvider ()
 
static getAndWithHighscoreWTimeDataProvider ()
 
- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 

Additional Inherited Members

- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Definition at line 24 of file SettingsGamificationTest.php.

Member Function Documentation

◆ getAndWithHighscoreAchievedTSDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreAchievedTSDataProvider ( )
static

Definition at line 133 of file SettingsGamificationTest.php.

133  : array
134  {
135  return [
136  [true],
137  [false]
138  ];
139  }

◆ getAndWithHighscoreAnonDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreAnonDataProvider ( )
static

Definition at line 115 of file SettingsGamificationTest.php.

115  : array
116  {
117  return [
118  [true],
119  [false],
120  ];
121  }

◆ getAndWithHighscoreEnabledDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreEnabledDataProvider ( )
static

Definition at line 42 of file SettingsGamificationTest.php.

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

◆ getAndWithHighscoreHintsDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreHintsDataProvider ( )
static

Definition at line 187 of file SettingsGamificationTest.php.

187  : array
188  {
189  return [
190  [true],
191  [false]
192  ];
193  }

◆ getAndWithHighscoreOwnTableDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreOwnTableDataProvider ( )
static

Definition at line 60 of file SettingsGamificationTest.php.

60  : array
61  {
62  return [
63  [true],
64  [false]
65  ];
66  }

◆ getAndWithHighscorePercentageDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscorePercentageDataProvider ( )
static

Definition at line 169 of file SettingsGamificationTest.php.

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

◆ getAndWithHighscoreScoreDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreScoreDataProvider ( )
static

Definition at line 151 of file SettingsGamificationTest.php.

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

◆ getAndWithHighscoreTopNumDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreTopNumDataProvider ( )
static

Definition at line 96 of file SettingsGamificationTest.php.

96  : array
97  {
98  return [
99  [-1],
100  [0],
101  [1]
102  ];
103  }

◆ getAndWithHighscoreTopTableDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreTopTableDataProvider ( )
static

Definition at line 78 of file SettingsGamificationTest.php.

78  : array
79  {
80  return [
81  [true],
82  [false]
83  ];
84  }

◆ getAndWithHighscoreWTimeDataProvider()

static ScoreReporting\SettingsGamificationTest::getAndWithHighscoreWTimeDataProvider ( )
static

Definition at line 205 of file SettingsGamificationTest.php.

205  : array
206  {
207  return [
208  [true],
209  [false]
210  ];
211  }

◆ 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)

getAndWithHighscoreAchievedTSDataProvider

Definition at line 126 of file SettingsGamificationTest.php.

126  : void
127  {
128  $gamificationTest = new SettingsGamification(0);
129  $gamificationTest = $gamificationTest->withHighscoreAchievedTS($IO);
130  $this->assertEquals($IO, $gamificationTest->getHighscoreAchievedTS());
131  }

◆ testGetAndWithHighscoreAnon()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreAnon ( bool  $IO)

getAndWithHighscoreAnonDataProvider

Definition at line 108 of file SettingsGamificationTest.php.

108  : void
109  {
110  $gamificationTest = new SettingsGamification(0);
111  $gamificationTest = $gamificationTest->withHighscoreAnon($IO);
112  $this->assertEquals($IO, $gamificationTest->getHighscoreAnon());
113  }

◆ testGetAndWithHighscoreEnabled()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreEnabled ( bool  $IO)

getAndWithHighscoreEnabledDataProvider

Definition at line 35 of file SettingsGamificationTest.php.

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

◆ testGetAndWithHighscoreHints()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreHints ( bool  $IO)

getAndWithHighscoreHintsDataProvider

Definition at line 180 of file SettingsGamificationTest.php.

180  : void
181  {
182  $gamificationTest = new SettingsGamification(0);
183  $gamificationTest = $gamificationTest->withHighscoreHints($IO);
184  $this->assertEquals($IO, $gamificationTest->getHighscoreHints());
185  }

◆ testGetAndWithHighscoreOwnTable()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreOwnTable ( bool  $IO)

getAndWithHighscoreOwnTableDataProvider

Definition at line 53 of file SettingsGamificationTest.php.

53  : void
54  {
55  $gamificationTest = new SettingsGamification(0);
56  $gamificationTest = $gamificationTest->withHighscoreOwnTable($IO);
57  $this->assertEquals($IO, $gamificationTest->getHighscoreOwnTable());
58  }

◆ testGetAndWithHighscorePercentage()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscorePercentage ( bool  $IO)

getAndWithHighscorePercentageDataProvider

Definition at line 162 of file SettingsGamificationTest.php.

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

◆ testGetAndWithHighscoreScore()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreScore ( bool  $IO)

getAndWithHighscoreScoreDataProvider

Definition at line 144 of file SettingsGamificationTest.php.

144  : void
145  {
146  $gamificationTest = new SettingsGamification(0);
147  $gamificationTest = $gamificationTest->withHighscoreScore($IO);
148  $this->assertEquals($IO, $gamificationTest->getHighscoreScore());
149  }

◆ testGetAndWithHighscoreTopNum()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreTopNum ( int  $IO)

getAndWithHighscoreTopNumDataProvider

Definition at line 89 of file SettingsGamificationTest.php.

89  : void
90  {
91  $gamificationTest = new SettingsGamification(0);
92  $gamificationTest = $gamificationTest->withHighscoreTopNum($IO);
93  $this->assertEquals($IO, $gamificationTest->getHighscoreTopNum());
94  }

◆ testGetAndWithHighscoreTopTable()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreTopTable ( bool  $IO)

getAndWithHighscoreTopTableDataProvider

Definition at line 71 of file SettingsGamificationTest.php.

71  : void
72  {
73  $gamificationTest = new SettingsGamification(0);
74  $gamificationTest = $gamificationTest->withHighscoreTopTable($IO);
75  $this->assertEquals($IO, $gamificationTest->getHighscoreTopTable());
76  }

◆ testGetAndWithHighscoreWTime()

ScoreReporting\SettingsGamificationTest::testGetAndWithHighscoreWTime ( bool  $IO)

getAndWithHighscoreWTimeDataProvider

Definition at line 198 of file SettingsGamificationTest.php.

198  : void
199  {
200  $gamificationTest = new SettingsGamification(0);
201  $gamificationTest = $gamificationTest->withHighscoreWTime($IO);
202  $this->assertEquals($IO, $gamificationTest->getHighscoreWTime());
203  }

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