Finish export forms
modifié: core/lib/Thelia/Config/Resources/config.xml modifié: core/lib/Thelia/Config/Resources/form.xml modifié: core/lib/Thelia/Controller/Admin/ExportController.php modifié: core/lib/Thelia/Controller/Admin/ImportExportController.php modifié: core/lib/Thelia/Core/Template/Loop/Formatter.php modifié: core/lib/Thelia/Core/Template/Loop/ImportExportType.php modifié: core/lib/Thelia/Form/ExportForm.php modifié: core/lib/Thelia/ImportExport/Both/NewsletterImportExport.php modifié: core/lib/Thelia/ImportExport/Export/MailingExport.php renommé: core/lib/Thelia/ImportExport/ExportHandlerInterface.php -> core/lib/Thelia/ImportExport/ExportHandler.php modifié: core/lib/Thelia/Model/Export.php modifié: core/lib/Thelia/Model/Import.php nouveau fichier: core/lib/Thelia/Tests/ImportExport/Export/MailingExportTest.php nouveau fichier: templates/backOffice/default/ajax/export-modal.html modifié: templates/backOffice/default/export-page.html modifié: templates/backOffice/default/export.html
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace Thelia\Tests\ImportExport\Export;
|
||||
use Symfony\Component\DependencyInjection\Container;
|
||||
use Thelia\Core\Translation\Translator;
|
||||
use Thelia\ImportExport\Export\ExportType;
|
||||
use Thelia\ImportExport\Export\MailingExport;
|
||||
|
||||
/**
|
||||
* Class MailingExportTest
|
||||
* @package Thelia\Tests\ImportExport\Export
|
||||
* @author Benjamin Perche <bperche@openstudio.fr>
|
||||
*/
|
||||
class MailingExportTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/** @var MailingExport $handler */
|
||||
protected $handler;
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
$container = new Container();
|
||||
|
||||
new Translator($container);
|
||||
|
||||
$this->handler = new MailingExport($container);
|
||||
}
|
||||
|
||||
public function testExport()
|
||||
{
|
||||
$data = $this->handler->buildFormatterData();
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function testType()
|
||||
{
|
||||
$this->assertEquals(
|
||||
[ExportType::EXPORT_TABLE, ExportType::EXPORT_UNBOUNDED],
|
||||
$this->handler->getHandledType()
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user