Refactor ExportHandler to allow queries override
modifié: core/lib/Thelia/Controller/Admin/ExportController.php modifié: core/lib/Thelia/ImportExport/Export/ExportHandler.php modifié: core/lib/Thelia/ImportExport/Export/Type/MailingExport.php modifié: core/lib/Thelia/ImportExport/Export/Type/ProductPricesExport.php modifié: core/lib/Thelia/ImportExport/Export/Type/ProductSEOExport.php modifié: core/lib/Thelia/Tests/ImportExport/Export/MailingExportTest.php modifié: core/lib/Thelia/Tests/ImportExport/Export/ProductPricesExportTest.php modifié: core/lib/Thelia/Tests/ImportExport/Export/ProductSEOExportTest.php
This commit is contained in:
@@ -15,6 +15,7 @@ use Symfony\Component\DependencyInjection\Container;
|
||||
use Thelia\Core\Translation\Translator;
|
||||
use Thelia\Core\FileFormat\FormatType;
|
||||
use Thelia\ImportExport\Export\Type\MailingExport;
|
||||
use Thelia\Model\Lang;
|
||||
|
||||
/**
|
||||
* Class MailingExportTest
|
||||
@@ -37,8 +38,7 @@ class MailingExportTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testExport()
|
||||
{
|
||||
$data = $this->handler->buildFormatterData();
|
||||
|
||||
$data = $this->handler->buildData(Lang::getDefaultLanguage());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ class ProductPricesExportTest extends \PHPUnit_Framework_TestCase
|
||||
new Translator(new Container());
|
||||
$export = new ProductPricesExport(new Container());
|
||||
|
||||
$data = $export->buildFormatterData(Lang::getDefaultLanguage());
|
||||
$data = $export->buildData(Lang::getDefaultLanguage());
|
||||
|
||||
$keys = ["attributes","currency","ean","price","promo","promo_price","ref","title"];
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ class ProductSEOExportTest extends \PHPUnit_Framework_TestCase
|
||||
new Translator(new Container());
|
||||
$export = new ProductSEOExport(new Container());
|
||||
|
||||
$data = $export->buildFormatterData(Lang::getDefaultLanguage());
|
||||
$data = $export->buildData(Lang::getDefaultLanguage());
|
||||
|
||||
$keys=["ref","visible","product_title","url","page_title","meta_description","meta_keywords",];
|
||||
sort($keys);
|
||||
|
||||
Reference in New Issue
Block a user