Avoid dumping pdf contents to test results
This commit is contained in:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user