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')));

View File

@@ -31,8 +31,8 @@ class TwigRendererTest extends KernelTestCase
$sut = new TwigRenderer($env);
$this->assertTrue($sut->supports($this->getInvoiceDocument('default.html.twig')));
$this->assertTrue($sut->supports($this->getInvoiceDocument('freelancer.html.twig')));
$this->assertTrue($sut->supports($this->getInvoiceDocument('timesheet.html.twig')));
$this->assertFalse($sut->supports($this->getInvoiceDocument('freelancer.pdf.twig')));
$this->assertFalse($sut->supports($this->getInvoiceDocument('foo.html.twig')));
$this->assertFalse($sut->supports($this->getInvoiceDocument('company.docx')));
$this->assertFalse($sut->supports($this->getInvoiceDocument('export.csv')));

View File

@@ -32,7 +32,7 @@ class InvoiceDocumentRepositoryTest extends TestCase
'company.docx',
'default.html.twig',
'default-pdf.pdf.twig',
'freelancer.html.twig',
'freelancer.pdf.twig',
'timesheet.html.twig',
'text.txt.twig',
'javascript.json.twig',