Avoid dumping pdf contents to test results

This commit is contained in:
Marcus Moore
2025-05-29 15:05:08 -07:00
parent bb68ed3ad9
commit 18d0a04efc
2 changed files with 15 additions and 1 deletions
+4
View File
@@ -7,6 +7,7 @@ use App\Models\Location;
use App\Models\Setting;
use App\View\Label;
use Tests\TestCase;
use function Livewire\invade;
class LabelTest extends TestCase
{
@@ -32,6 +33,9 @@ class LabelTest extends TestCase
->with('bulkedit', true)
->with('count', 0);
// a simple way to avoid flooding test output with PDF characters.
invade($label)->destination = 'S';
$label->render();
$this->assertTrue(true, 'Label rendering should not throw an error when location is not set on an asset.');