modifié:         core/lib/Thelia/ImportExport/AbstractHandler.php
	modifié:         core/lib/Thelia/ImportExport/Export/DocumentsExportInterface.php
	modifié:         core/lib/Thelia/ImportExport/Export/ExportHandler.php
	modifié:         core/lib/Thelia/ImportExport/Export/ImagesExportInterface.php
	modifié:         core/lib/Thelia/ImportExport/Export/Type/CustomerExport.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/ImportExport/Import/ImportHandler.php
	modifié:         core/lib/Thelia/ImportExport/Import/Type/ProductPricesImport.php
	modifié:         core/lib/Thelia/ImportExport/Import/Type/ProductStockImport.php
	modifié:         core/lib/Thelia/Tests/ContainerAwareTestCase.php
	modifié:         core/lib/Thelia/Tests/ImportExport/Export/CustomerExportTest.php
	modifié:         core/lib/Thelia/Tests/ImportExport/Export/ExportHandlerTest.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
	modifié:         core/lib/Thelia/Tests/ImportExport/Import/ProductPricesImportTest.php
	modifié:         core/lib/Thelia/Tests/ImportExport/Import/ProductStockImportTest.php
This commit is contained in:
Benjamin Perche
2014-07-25 10:22:28 +02:00
parent f891d8b788
commit b2588a8fca
19 changed files with 29 additions and 52 deletions

View File

@@ -75,4 +75,4 @@ abstract class ContainerAwareTestCase extends \PHPUnit_Framework_TestCase
* Use this method to build the container with the services that you need.
*/
abstract protected function buildContainer(ContainerBuilder $container);
}
}

View File

@@ -193,4 +193,4 @@ class CustomerExportTest extends \PHPUnit_Framework_TestCase
}
}
}
}

View File

@@ -16,7 +16,6 @@ use Thelia\Core\FileFormat\FormatType;
use Thelia\Model\AddressQuery;
use Thelia\Model\CustomerQuery;
use Thelia\Model\Lang;
use Thelia\Model\Map\AddressTableMap;
use Thelia\Tests\ContainerAwareTestCase;
/**
@@ -41,12 +40,10 @@ class ExportHandlerTest extends ContainerAwareTestCase
);
}
public function setUp()
{
parent::setUp();
$this->handler = $this->getMock(
"Thelia\\ImportExport\\Export\\ExportHandler",
[
@@ -121,4 +118,4 @@ class ExportHandlerTest extends ContainerAwareTestCase
}
}
}
}

View File

@@ -49,4 +49,4 @@ class MailingExportTest extends \PHPUnit_Framework_TestCase
$this->handler->getHandledTypes()
);
}
}
}

View File

@@ -17,7 +17,6 @@ use Thelia\ImportExport\Export\Type\ProductPricesExport;
use Thelia\Model\Base\ProductSaleElementsQuery;
use Thelia\Model\CurrencyQuery;
use Thelia\Model\Lang;
use Thelia\Model\LangQuery;
/**
* Class ProductPricesExportTest
@@ -47,8 +46,7 @@ class ProductPricesExportTest extends \PHPUnit_Framework_TestCase
$max = 50;
}
for ($i = 0; $i < $max; ++$i)
{
for ($i = 0; $i < $max; ++$i) {
$row = $rawData[$i];
$rowKeys = array_keys($row);
@@ -87,4 +85,4 @@ class ProductPricesExportTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($attributes, $rowAttributes);
}
}
}
}

View File

@@ -14,11 +14,7 @@ namespace Thelia\Tests\ImportExport\Export;
use Symfony\Component\DependencyInjection\Container;
use Thelia\Core\Translation\Translator;
use Thelia\ImportExport\Export\Type\ProductSEOExport;
use Thelia\Model\Base\ProductAssociatedContentQuery;
use Thelia\Model\ContentI18nQuery;
use Thelia\Model\ContentQuery;
use Thelia\Model\Lang;
use Thelia\Model\ProductAssociatedContent;
use Thelia\Model\ProductQuery;
/**
@@ -49,8 +45,7 @@ class ProductSEOExportTest extends \PHPUnit_Framework_TestCase
$max = 50;
}
for ($i = 0; $i < $max; ++$i)
{
for ($i = 0; $i < $max; ++$i) {
$row = $rawData[$i];
$rowKeys = array_keys($row);
@@ -69,4 +64,4 @@ class ProductSEOExportTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($product->getRewrittenUrl("en_US"), $row["url"]);
}
}
}
}

View File

@@ -18,7 +18,6 @@ use Thelia\ImportExport\Import\Type\ProductPricesImport;
use Thelia\Model\Currency;
use Thelia\Model\ProductSaleElementsQuery;
use Thelia\Tests\Controller\ControllerTestBase;
use Thelia\Tests\Controller\ImportExportControllerTrait;
/**
* Class ProductPricesImportTest
@@ -35,7 +34,6 @@ class ProductPricesImportTest extends ControllerTestBase
}
/**
* @return \Thelia\Controller\BaseController The controller you want to test
*/
@@ -44,7 +42,6 @@ class ProductPricesImportTest extends ControllerTestBase
return new ImportController();
}
public function setUp()
{
parent::setUp();
@@ -112,4 +109,4 @@ class ProductPricesImportTest extends ControllerTestBase
}
}
}
}

View File

@@ -35,7 +35,6 @@ class ProductStockImportTest extends ControllerTestBase
return new ImportController();
}
public function setUp()
{
parent::setUp();
@@ -92,4 +91,4 @@ class ProductStockImportTest extends ControllerTestBase
);
}
}
}
}