ILIAS  release_8 Revision v8.24
GlobalSettingsTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21use PHPUnit\Framework\TestCase;
22
23class 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,
49 $settings->getPollingIntervalMilliseconds()
50 );
51 }
52}
testIntervalAttribute(LSGlobalSettings $settings)
@depends testConstruction
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200