diff --git a/tests/Unit/Models/Labels/DefaultLabelTest.php b/tests/Unit/Models/Labels/DefaultLabelTest.php index 5e07d3ccb4..db7abf5a35 100644 --- a/tests/Unit/Models/Labels/DefaultLabelTest.php +++ b/tests/Unit/Models/Labels/DefaultLabelTest.php @@ -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()); } }