diff --git a/lib/WeatherMapLink.class.php b/lib/WeatherMapLink.class.php index 4dcf279..daef31c 100644 --- a/lib/WeatherMapLink.class.php +++ b/lib/WeatherMapLink.class.php @@ -239,10 +239,10 @@ function __construct() { // 'outcomment' => '', 'zorder' => 300, 'overlibcaption' => ['', ''], - 'max_bandwidth_in' => 100000000, - 'max_bandwidth_out' => 100000000, - 'max_bandwidth_in_cfg' => '100M', - 'max_bandwidth_out_cfg' => '100M' + 'max_bandwidth_in' => 1000000000, + 'max_bandwidth_out' => 1000000000, + 'max_bandwidth_in_cfg' => '1000M', + 'max_bandwidth_out_cfg' => '1000M' ]; // $this->a_offset = 'C'; diff --git a/tests/Unit/DefaultLinkBandwidthTest.php b/tests/Unit/DefaultLinkBandwidthTest.php new file mode 100644 index 0000000..218ba4e --- /dev/null +++ b/tests/Unit/DefaultLinkBandwidthTest.php @@ -0,0 +1,38 @@ +Reset($map); + foreach([$map->links['DEFAULT'],$link] as $item){ + self::assertSame(1000000000,$item->max_bandwidth_in);self::assertSame(1000000000,$item->max_bandwidth_out); + self::assertSame('1000M',$item->max_bandwidth_in_cfg);self::assertSame('1000M',$item->max_bandwidth_out_cfg); + } + } +}