mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-16 10:34:08 -08:00
20 lines
415 B
PHP
20 lines
415 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Unit\Helpers;
|
||
|
|
||
|
use App\Helpers\Helper;
|
||
|
use Tests\TestCase;
|
||
|
|
||
|
class HelperTest extends TestCase
|
||
|
{
|
||
|
public function testDefaultChartColorsMethodHandlesHighValues()
|
||
|
{
|
||
|
$this->assertIsString(Helper::defaultChartColors(1000));
|
||
|
}
|
||
|
|
||
|
public function testDefaultChartColorsMethodHandlesNegativeNumbers()
|
||
|
{
|
||
|
$this->assertIsString(Helper::defaultChartColors(-1));
|
||
|
}
|
||
|
}
|