mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-28 23:19:42 -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));
|
||
|
}
|
||
|
}
|