invoiceninja/tests/Pdf/PdfGenerationTest.php

38 lines
738 B
PHP
Raw Normal View History

2019-05-04 13:14:37 +10:00
<?php
2020-09-14 21:11:46 +10:00
/**
* 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
*/
2019-05-04 13:14:37 +10:00
namespace Tests\Pdf;
2020-12-23 16:17:05 +01:00
use Beganovich\Snappdf\Snappdf;
2019-05-04 13:14:37 +10:00
use Tests\TestCase;
/**
* @test
//@covers App\DataMapper\BaseSettings
*/
class PdfGenerationTest extends TestCase
{
public function setUp() :void
{
parent::setUp();
}
public function testPdfGeneration()
{
2020-12-23 16:17:05 +01:00
$snappdf = new Snappdf();
2019-05-04 16:55:19 +10:00
2020-12-23 16:17:05 +01:00
$pdf = $snappdf
->setHtml('<h1>Invoice Ninja</h1>')
->generate();
2019-05-04 16:55:19 +10:00
2020-12-23 16:17:05 +01:00
$this->assertNotNull($pdf);
}
2019-05-04 13:14:37 +10:00
}