ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
GlobalSettingsTest Class Reference
+ Inheritance diagram for GlobalSettingsTest:
+ Collaboration diagram for GlobalSettingsTest:

Public Member Functions

 testConstruction ()
 
 testIntervalAttribute (LSGlobalSettings $settings)
 

Detailed Description

Definition at line 23 of file GlobalSettingsTest.php.

Member Function Documentation

◆ testConstruction()

GlobalSettingsTest::testConstruction ( )

Definition at line 25 of file GlobalSettingsTest.php.

26 {
27 $interval = 12.3;
28 $settings = new LSGlobalSettings($interval);
29 $this->assertEquals(
30 $interval,
31 $settings->getPollingIntervalSeconds()
32 );
33 return $settings;
34 }
Global Settings of the Learning Sequence.

◆ testIntervalAttribute()

GlobalSettingsTest::testIntervalAttribute ( LSGlobalSettings  $settings)

Definition at line 37 of file GlobalSettingsTest.php.

37 : void
38 {
39 $interval = 2.0;
40 $settings = $settings->withPollingIntervalSeconds($interval);
41 $this->assertEquals(
42 $interval,
43 $settings->getPollingIntervalSeconds()
44 );
45 $this->assertEquals(
46 $interval * 1000,
48 );
49 }
withPollingIntervalSeconds(float $seconds)

References LSGlobalSettings\getPollingIntervalMilliseconds(), LSGlobalSettings\getPollingIntervalSeconds(), and LSGlobalSettings\withPollingIntervalSeconds().

+ Here is the call graph for this function:

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