replace "freelancer" invoice template with pdf version (#2289)

This commit is contained in:
Kevin Papst
2021-01-22 19:47:05 +01:00
committed by GitHub
parent 88b4d3842f
commit c9ccdb5f77
13 changed files with 193 additions and 169 deletions

View File

@@ -31,7 +31,7 @@ class PdfRendererTest extends KernelTestCase
$env = new Environment($loader);
$sut = new PdfRenderer($env, $this->createMock(MPdfConverter::class));
$this->assertTrue($sut->supports($this->getInvoiceDocument('default.pdf.twig', true)));
$this->assertFalse($sut->supports($this->getInvoiceDocument('freelancer.html.twig')));
$this->assertTrue($sut->supports($this->getInvoiceDocument('freelancer.pdf.twig')));
$this->assertFalse($sut->supports($this->getInvoiceDocument('timesheet.html.twig')));
$this->assertFalse($sut->supports($this->getInvoiceDocument('foo.html.twig')));
$this->assertFalse($sut->supports($this->getInvoiceDocument('company.docx')));