Scaffold test

This commit is contained in:
Marcus Moore
2025-05-28 14:04:12 -07:00
parent aaa6cb24d4
commit 0df1bc6894
+13 -23
View File
@@ -3,6 +3,7 @@
namespace Tests\Unit\Models\Labels;
use App\Models\Labels\DefaultLabel;
use Exception;
use Tests\TestCase;
class DefaultLabelTest extends TestCase
@@ -12,21 +13,13 @@ class DefaultLabelTest extends TestCase
*/
public function test_handles_zero_values_for_columns_gracefully()
{
// Defaults
// labels_pagewidth = 8.50000
// labels_pmargin_left = 0.21975
// labels_pmargin_right = 0.21975
// labels_display_sgutter = 0.05000
// labels_width = 2.62500
$this->settings->set([
'labels_width' => 0.00000,
'labels_display_sgutter' => 0.00000,
]);
// $this->settings->set([
// 'labels_width' => 0.00000,
// 'labels_display_sgutter' => 0.00000,
// ]);
$label = new DefaultLabel();
// $label->getColumns();
// simply ensuring constructor didn't throw exception...
$this->assertInstanceOf(DefaultLabel::class, new DefaultLabel());
}
/**
@@ -34,15 +27,12 @@ class DefaultLabelTest extends TestCase
*/
public function test_handles_zero_values_for_rows_gracefully()
{
$this->markTestIncomplete();
$this->settings->set([
'labels_height' => 0.00000,
'labels_display_bgutter' => 0.00000,
]);
// $this->settings->set([
// 'labels_height' => 0.00000,
// 'labels_display_bgutter' => 0.00000,
// ]);
$label = new DefaultLabel();
// $label->getRows()
// simply ensuring constructor didn't throw exception...
$this->assertInstanceOf(DefaultLabel::class, new DefaultLabel());
}
}