ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
GlobalSettingsTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
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 
39  public function testIntervalAttribute(LSGlobalSettings $settings): 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  }
52 }
Global Settings of the Learning Sequence.
testIntervalAttribute(LSGlobalSettings $settings)
testConstruction
withPollingIntervalSeconds(float $seconds)