Fix bugs and add ProductPricesExport tests
modifié: core/lib/Thelia/Core/DependencyInjection/Loader/XmlFileLoader.php modifié: core/lib/Thelia/ImportExport/Export/Type/MailingExport.php nouveau fichier: core/lib/Thelia/Tests/ImportExport/Export/ProductPricesExportTest.php
This commit is contained in:
@@ -368,14 +368,6 @@ class XmlFileLoader extends FileLoader
|
||||
);
|
||||
}
|
||||
|
||||
$classInstance = new $class($this->container);
|
||||
|
||||
if (!$classInstance instanceof ExportHandler) {
|
||||
throw new \ErrorException(
|
||||
"The class \"$class\" must extend Thelia\\ImportExport\\Export\\ExportHandler"
|
||||
);
|
||||
}
|
||||
|
||||
$category = ExportCategoryQuery::create()->findOneByRef($categoryRef);
|
||||
|
||||
if (null === $category) {
|
||||
@@ -505,14 +497,6 @@ class XmlFileLoader extends FileLoader
|
||||
);
|
||||
}
|
||||
|
||||
$classInstance = new $class($this->container);
|
||||
|
||||
if (!$classInstance instanceof ImportHandler) {
|
||||
throw new \ErrorException(
|
||||
"The class \"$class\" must extend Thelia\\ImportImport\\ImportHandler"
|
||||
);
|
||||
}
|
||||
|
||||
$category = ImportCategoryQuery::create()->findOneByRef($categoryRef);
|
||||
|
||||
if (null === $category) {
|
||||
|
||||
Reference in New Issue
Block a user