ILIAS  trunk Revision v11.0_alpha-1861-g09f3d197f78
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
GlobalSettingsTest Class Reference
+ Inheritance diagram for GlobalSettingsTest:
+ Collaboration diagram for GlobalSettingsTest:

Public Member Functions

 testConstruction ()
 
 testIntervalAttribute (LSGlobalSettings $settings)
 testConstruction More...
 

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)

testConstruction

Definition at line 39 of file GlobalSettingsTest.php.

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

39  : void
40  {
41  $interval = 2.0;
42  $settings = $settings->withPollingIntervalSeconds($interval);
43  $this->assertEquals(
44  $interval,
45  $settings->getPollingIntervalSeconds()
46  );
47  $this->assertEquals(
48  $interval * 1000,
50  );
51  }
withPollingIntervalSeconds(float $seconds)
+ Here is the call graph for this function:

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