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