mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 19:07:32 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
		
			991 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			991 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * Invoice Ninja (https://invoiceninja.com).
 | |
|  *
 | |
|  * @link https://github.com/invoiceninja/invoiceninja source repository
 | |
|  *
 | |
|  * @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
 | |
|  *
 | |
|  * @license https://opensource.org/licenses/AAL
 | |
|  */
 | |
| namespace Tests\Integration;
 | |
| 
 | |
| use App\Designs\Bold;
 | |
| use App\Designs\Designer;
 | |
| use App\Models\Design;
 | |
| use App\Utils\Traits\MakesInvoiceHtml;
 | |
| use Tests\MockAccountData;
 | |
| use Tests\TestCase;
 | |
| 
 | |
| /**
 | |
|  * @test
 | |
|  */
 | |
| class HtmlGenerationTest extends TestCase
 | |
| {
 | |
|     use MockAccountData;
 | |
|     use MakesInvoiceHtml;
 | |
| 
 | |
|     public function setUp() :void
 | |
|     {
 | |
|         parent::setUp();
 | |
| 
 | |
|         $this->makeTestData();
 | |
|     }
 | |
| 
 | |
|     public function testHtmlOutput()
 | |
|     {
 | |
|         $design = Design::find(3);
 | |
| 
 | |
|         $designer = new Designer($this->invoice, $design, $this->invoice->client->getSetting('pdf_variables'), 'invoice');
 | |
| 
 | |
|         $html = $this->generateEntityHtml($designer, $this->invoice);
 | |
| 
 | |
|         $this->assertNotNull($html);
 | |
|     }
 | |
| }
 |