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:
Benjamin Perche
2014-07-22 14:31:27 +02:00
parent 94c44ea003
commit dc97b65590
3 changed files with 91 additions and 17 deletions

View File

@@ -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) {