invoice: money fields without currency, title cleanup (#1254)
This commit is contained in:
@@ -60,10 +60,13 @@ class DebugRendererTest extends TestCase
|
||||
'invoice.currency',
|
||||
'invoice.vat',
|
||||
'invoice.tax',
|
||||
'invoice.tax_nc',
|
||||
'invoice.total_time',
|
||||
'invoice.duration_decimal',
|
||||
'invoice.total',
|
||||
'invoice.total_nc',
|
||||
'invoice.subtotal',
|
||||
'invoice.subtotal_nc',
|
||||
'template.name',
|
||||
'template.company',
|
||||
'template.address',
|
||||
@@ -123,7 +126,9 @@ class DebugRendererTest extends TestCase
|
||||
'entry.description',
|
||||
'entry.amount',
|
||||
'entry.rate',
|
||||
'entry.rate_nc',
|
||||
'entry.total',
|
||||
'entry.total_nc',
|
||||
'entry.currency',
|
||||
'entry.duration',
|
||||
'entry.duration_decimal',
|
||||
|
||||
@@ -89,7 +89,7 @@ trait RendererTestTrait
|
||||
$customer->setMetaField((new CustomerMeta())->setName('foo-customer')->setValue('bar-customer')->setIsVisible(true));
|
||||
|
||||
$template = new InvoiceTemplate();
|
||||
$template->setTitle('a test invoice template title');
|
||||
$template->setTitle('a very *long* test invoice / template title with [special] character');
|
||||
$template->setVat(19);
|
||||
|
||||
$project = new Project();
|
||||
|
||||
@@ -63,7 +63,7 @@ class TwigRendererTest extends KernelTestCase
|
||||
$content = $response->getContent();
|
||||
|
||||
$this->assertStringContainsString('<h2 class="page-header">
|
||||
<span contenteditable="true">a test invoice template title</span>
|
||||
<span contenteditable="true">a very *long* test invoice / template title with [special] character</span>
|
||||
</h2>', $content);
|
||||
$this->assertEquals(5, substr_count($content, 'activity description'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user