From cd56928e81902b6c031ca874957dad4d9de286bf Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Mon, 24 Feb 2014 14:15:57 +0100 Subject: [PATCH] create pdf test suite --- core/lib/Thelia/Tests/Action/PdfTest.php | 50 ++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 core/lib/Thelia/Tests/Action/PdfTest.php 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