diff --git a/core/lib/Thelia/Tests/Action/PdfTest.php b/core/lib/Thelia/Tests/Action/PdfTest.php new file mode 100644 index 000000000..8c565de96 --- /dev/null +++ b/core/lib/Thelia/Tests/Action/PdfTest.php @@ -0,0 +1,50 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Tests\Action; + +use Thelia\Action\Pdf; +use Thelia\Core\Event\PdfEvent; + + +/** + * Class PdfTest + * @package Thelia\Tests\Action + * @author Manuel Raynaud + */ +class PdfTest extends \PHPUnit_Framework_TestCase +{ + + public function testGeneratePdf() + { + $event = new PdfEvent("test content"); + + $action = new Pdf(); + $action->generatePdf($event); + + $generatedPdf = $event->getPdf(); + + $this->assertNotNull($generatedPdf); + } + +} \ No newline at end of file