ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
GlobalSettingsTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
23 class GlobalSettingsTest extends TestCase
24 {
26  {
27  $interval = 12.3;
28  $settings = new LSGlobalSettings($interval);
29  $this->assertEquals(
30  $interval,
31  $settings->getPollingIntervalSeconds()
32  );
33  return $settings;
34  }
35 
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  }
52 }
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(LSGlobalSettings $settings)
testConstruction
withPollingIntervalSeconds(float $seconds)