mock()->build is necessary

This commit is contained in:
David Bomba 2025-07-12 10:19:35 +10:00
parent 3f9be79632
commit 688a7b5e60
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class TemplateMock
$mock = (new PdfMock($data, $this->company));
$mock->settings = $this->settings ?? $this->company->settings;
// $mock->build(); //2025-07-11 unnecessary to generate the build here as it stubs a PDF preview each time!
$mock->build(); //2025-07-11 unnecessary to generate the build here as it stubs a PDF preview each time!
return [$type => $mock->getStubVariables()];
}