ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
All Data Structures Namespaces Files Functions Variables Typedefs Modules Pages
LSGlobalSettingsTest Class Reference
+ Inheritance diagram for LSGlobalSettingsTest:
+ Collaboration diagram for LSGlobalSettingsTest:

Public Member Functions

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

Detailed Description

Definition at line 5 of file GlobalSettingsTest.php.

Member Function Documentation

◆ testConstruction()

LSGlobalSettingsTest::testConstruction ( )

Definition at line 7 of file GlobalSettingsTest.php.

8  {
9  $interval = 12.3;
10  $settings = new LSGlobalSettings($interval);
11  $this->assertEquals(
12  $interval,
13  $settings->getPollingIntervalSeconds()
14  );
15 
16  return $settings;
17  }
Global Settings of the Learning Sequence.

◆ testIntervalAttribute()

LSGlobalSettingsTest::testIntervalAttribute ( LSGlobalSettings  $settings)

testConstruction

Definition at line 22 of file GlobalSettingsTest.php.

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

23  {
24  $interval = 2.0;
25  $settings = $settings->withPollingIntervalSeconds($interval);
26  $this->assertEquals(
27  $interval,
28  $settings->getPollingIntervalSeconds()
29  );
30  $this->assertEquals(
31  $interval * 1000,
33  );
34  }
withPollingIntervalSeconds(float $seconds)
+ Here is the call graph for this function:

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