Fix tests and rename one
renommé: core/lib/Thelia/Tests/ImportExport/Import/ProductPriceImportTest.php -> core/lib/Thelia/Tests/ImportExport/Import/ProductPricesImportTest.php modifié: core/lib/Thelia/Tests/ImportExport/Import/ProductStockImportTest.php
This commit is contained in:
@@ -21,11 +21,11 @@ use Thelia\Tests\Controller\ControllerTestBase;
|
|||||||
use Thelia\Tests\Controller\ImportExportControllerTrait;
|
use Thelia\Tests\Controller\ImportExportControllerTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ProductPriceImportTest
|
* Class ProductPricesImportTest
|
||||||
* @package Thelia\Tests\ImportExport\Import
|
* @package Thelia\Tests\ImportExport\Import
|
||||||
* @author Benjamin Perche <bperche@openstudio.fr>
|
* @author Benjamin Perche <bperche@openstudio.fr>
|
||||||
*/
|
*/
|
||||||
class ProductPriceImportTest extends ControllerTestBase
|
class ProductPricesImportTest extends ControllerTestBase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Use this method to build the container with the services that you need.
|
* Use this method to build the container with the services that you need.
|
||||||
@@ -87,7 +87,7 @@ class ProductPriceImportTest extends ControllerTestBase
|
|||||||
$jsonString = json_encode($jsonData);
|
$jsonString = json_encode($jsonData);
|
||||||
|
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
"Import successfully done",
|
"Import successfully done, 3 row(s) have been changed",
|
||||||
$this->controller->processImport(
|
$this->controller->processImport(
|
||||||
$jsonString,
|
$jsonString,
|
||||||
$this->import,
|
$this->import,
|
||||||
@@ -19,11 +19,11 @@ use Thelia\Tests\Controller\ControllerTestBase;
|
|||||||
use Thelia\Tests\Controller\ImportExportControllerTrait;
|
use Thelia\Tests\Controller\ImportExportControllerTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ProductStockControllerTest
|
* Class ProductStockImportTest
|
||||||
* @package Thelia\Tests\ImportExport\Import
|
* @package Thelia\Tests\ImportExport\Import
|
||||||
* @author Benjamin Perche <bperche@openstudio.fr>
|
* @author Benjamin Perche <bperche@openstudio.fr>
|
||||||
*/
|
*/
|
||||||
class ProductStockControllerTest extends ControllerTestBase
|
class ProductStockImportTest extends ControllerTestBase
|
||||||
{
|
{
|
||||||
use ImportExportControllerTrait;
|
use ImportExportControllerTrait;
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ class ProductStockControllerTest extends ControllerTestBase
|
|||||||
$jsonString = json_encode($jsonData);
|
$jsonString = json_encode($jsonData);
|
||||||
|
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
"Import successfully done",
|
"Import successfully done, 3 row(s) have been changed",
|
||||||
$this->controller->processImport(
|
$this->controller->processImport(
|
||||||
$jsonString,
|
$jsonString,
|
||||||
$this->import,
|
$this->import,
|
||||||
|
|||||||
Reference in New Issue
Block a user