3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 19:15:50 +00:00
Files
snipe-it/tests/Unit/Models/Labels/DefaultLabelTest.php
Marcus Moore 0df1bc6894 Scaffold test
2025-05-28 14:04:12 -07:00

39 lines
1021 B
PHP

<?php
namespace Tests\Unit\Models\Labels;
use App\Models\Labels\DefaultLabel;
use Exception;
use Tests\TestCase;
class DefaultLabelTest extends TestCase
{
/**
* @link https://app.shortcut.com/grokability/story/29281
*/
public function test_handles_zero_values_for_columns_gracefully()
{
$this->settings->set([
'labels_width' => 0.00000,
'labels_display_sgutter' => 0.00000,
]);
// simply ensuring constructor didn't throw exception...
$this->assertInstanceOf(DefaultLabel::class, new DefaultLabel());
}
/**
* @link https://app.shortcut.com/grokability/story/29281
*/
public function test_handles_zero_values_for_rows_gracefully()
{
$this->settings->set([
'labels_height' => 0.00000,
'labels_display_bgutter' => 0.00000,
]);
// simply ensuring constructor didn't throw exception...
$this->assertInstanceOf(DefaultLabel::class, new DefaultLabel());
}
}