mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Fixes for PdfMaker tests
This commit is contained in:
parent
347ec1d441
commit
b5f2ae6d6b
@ -24,6 +24,8 @@ class PdfMakerDesignsTest extends TestCase
|
|||||||
|
|
||||||
$this->state = [
|
$this->state = [
|
||||||
'variables' => [
|
'variables' => [
|
||||||
|
'labels' => [],
|
||||||
|
'values' => [
|
||||||
'$css' => asset('css/tailwindcss@1.4.6.css'),
|
'$css' => asset('css/tailwindcss@1.4.6.css'),
|
||||||
'$global-margin' => 'm-12',
|
'$global-margin' => 'm-12',
|
||||||
'$global-padding' => 'p-12',
|
'$global-padding' => 'p-12',
|
||||||
@ -46,6 +48,7 @@ class PdfMakerDesignsTest extends TestCase
|
|||||||
|
|
||||||
'$entity' => 'Invoice',
|
'$entity' => 'Invoice',
|
||||||
],
|
],
|
||||||
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -707,7 +710,7 @@ class PdfMakerDesignsTest extends TestCase
|
|||||||
$this->assertTrue(true);
|
$this->assertTrue(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testElegant()
|
public function testElegant()
|
||||||
{
|
{
|
||||||
$state = [
|
$state = [
|
||||||
'template' => [
|
'template' => [
|
||||||
|
@ -10,7 +10,10 @@ class PdfMakerTest extends TestCase
|
|||||||
{
|
{
|
||||||
public $state = [
|
public $state = [
|
||||||
'template' => [],
|
'template' => [],
|
||||||
'variables' => [],
|
'variables' => [
|
||||||
|
'labels' => [],
|
||||||
|
'values' => [],
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
public function testDesignLoadsCorrectly()
|
public function testDesignLoadsCorrectly()
|
||||||
@ -63,7 +66,10 @@ class PdfMakerTest extends TestCase
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'variables' => [],
|
'variables' => [
|
||||||
|
'labels' => [],
|
||||||
|
'values' => [],
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
$maker = new PdfMaker($state);
|
$maker = new PdfMaker($state);
|
||||||
@ -97,8 +103,11 @@ class PdfMakerTest extends TestCase
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
'variables' => [
|
'variables' => [
|
||||||
|
'labels' => [],
|
||||||
|
'values' => [
|
||||||
'$title' => 'Invoice Ninja',
|
'$title' => 'Invoice Ninja',
|
||||||
],
|
],
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
$maker = new PdfMaker($state);
|
$maker = new PdfMaker($state);
|
||||||
@ -139,10 +148,13 @@ class PdfMakerTest extends TestCase
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
'variables' => [
|
'variables' => [
|
||||||
|
'labels' => [],
|
||||||
|
'values' => [
|
||||||
'$company' => 'Invoice Ninja',
|
'$company' => 'Invoice Ninja',
|
||||||
'$email' => 'contact@invoiceninja.com',
|
'$email' => 'contact@invoiceninja.com',
|
||||||
'$country' => 'UK',
|
'$country' => 'UK',
|
||||||
],
|
],
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
$maker = new PdfMaker($state);
|
$maker = new PdfMaker($state);
|
||||||
@ -294,8 +306,11 @@ class PdfMakerTest extends TestCase
|
|||||||
],
|
],
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'variables' =>[
|
'variables' => [
|
||||||
|
'labels' => [],
|
||||||
|
'values' => [
|
||||||
'$title' => 'Invoice Ninja',
|
'$title' => 'Invoice Ninja',
|
||||||
|
],
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user