ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables 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.

References ILIAS\LTI\ToolProvider\$settings.

26  {
27  $interval = 12.3;
28  $settings = new LSGlobalSettings($interval);
29  $this->assertEquals(
30  $interval,
31  $settings->getPollingIntervalSeconds()
32  );
33  return $settings;
34  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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