replace "freelancer" invoice template with pdf version (#2289)
This commit is contained in:
@@ -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')));
|
||||
|
||||
@@ -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')));
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user