diff --git a/core/lib/Thelia/Action/ProductSaleElement.php b/core/lib/Thelia/Action/ProductSaleElement.php index 875dbcc1d..bfe2d5bb1 100644 --- a/core/lib/Thelia/Action/ProductSaleElement.php +++ b/core/lib/Thelia/Action/ProductSaleElement.php @@ -94,6 +94,8 @@ class ProductSaleElement extends BaseAction implements EventSubscriberInterface } } + $event->setProductSaleElement($salesElement); + // Store all the stuff ! $con->commit(); } catch (\Exception $ex) { diff --git a/core/lib/Thelia/Core/Event/ProductSaleElement/ProductSaleElementEvent.php b/core/lib/Thelia/Core/Event/ProductSaleElement/ProductSaleElementEvent.php index a99b2cfe7..0f34bd62f 100644 --- a/core/lib/Thelia/Core/Event/ProductSaleElement/ProductSaleElementEvent.php +++ b/core/lib/Thelia/Core/Event/ProductSaleElement/ProductSaleElementEvent.php @@ -23,8 +23,8 @@ namespace Thelia\Core\Event\ProductSaleElement; -use Thelia\Model\ProductSaleElement; use Thelia\Core\Event\ActionEvent; +use Thelia\Model\ProductSaleElements; class ProductSaleElementEvent extends ActionEvent { @@ -45,7 +45,7 @@ class ProductSaleElementEvent extends ActionEvent return $this->product_sale_element; } - public function setProductSaleElement(ProductSaleElement $product_sale_element) + public function setProductSaleElement(ProductSaleElements $product_sale_element) { $this->product_sale_element = $product_sale_element; diff --git a/core/lib/Thelia/Tests/TaxEngine/TaxEngineTest.php b/core/lib/Thelia/Tests/TaxEngine/TaxEngineTest.php deleted file mode 100644 index ef243c836..000000000 --- a/core/lib/Thelia/Tests/TaxEngine/TaxEngineTest.php +++ /dev/null @@ -1,61 +0,0 @@ -. */ -/* */ -/*************************************************************************************/ - -namespace Thelia\Tests\TaxEngine; - -use Thelia\Core\HttpFoundation\Request; -use Thelia\Core\HttpFoundation\Session\Session; -use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; -use Thelia\TaxEngine\TaxEngine; - - -/** - * - * @author Franck Allimant - * - */ -class TaxEngineTest extends \PHPUnit_Framework_TestCase -{ - protected $request; - - public function setUp() - { - $this->request = new Request(); - - $this->request->setSession(new Session(new MockArraySessionStorage())); - } - - /** - */ - public function testGetTaxTypeList() - { - $taxEngine = new TaxEngine($this->request); - - $list = $taxEngine->getTaxTypeList(); - - $this->assertEquals($list[0], "Thelia\TaxEngine\TaxType\FeatureFixAmountTaxType"); - $this->assertEquals($list[1], "Thelia\TaxEngine\TaxType\FixAmountTaxType"); - $this->assertEquals($list[2], "Thelia\TaxEngine\TaxType\PricePercentTaxType"); - } -} \ No newline at end of file