invoice: money fields without currency, title cleanup (#1254)

This commit is contained in:
Kevin Papst
2019-11-15 18:54:08 +01:00
committed by GitHub
parent 94c28ebbc5
commit 2287c9951c
5 changed files with 29 additions and 10 deletions

View File

@@ -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',

View File

@@ -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();

View File

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