Skip to content

Commit

Permalink
use TotalValueELment to avoid Dough dependency in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iampersistent committed Mar 17, 2013
1 parent 1c6d95c commit e162a2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Manager/BillingManagerTest.php
Expand Up @@ -17,7 +17,7 @@
use Vespolina\Entity\Product\Product; use Vespolina\Entity\Product\Product;
use Vespolina\Entity\Pricing\PricingContext; use Vespolina\Entity\Pricing\PricingContext;
use Vespolina\Entity\Partner\Partner; use Vespolina\Entity\Partner\Partner;
use Vespolina\Entity\Pricing\Element\TotalDoughValueElement; use Vespolina\Entity\Pricing\Element\TotalValueElement;
/** /**
* @group ecommerce * @group ecommerce
*/ */
Expand Down Expand Up @@ -156,7 +156,7 @@ protected function createRecurringOrder()
$recurringElement->setInterval('1 month'); $recurringElement->setInterval('1 month');
$recurringElement->setRecurringCharge('30'); $recurringElement->setRecurringCharge('30');


$pricingSet = new PricingSet(new TotalDoughValueElement()); $pricingSet = new PricingSet(new TotalValueElement());
$pricingSet->addPricingElement($recurringElement); $pricingSet->addPricingElement($recurringElement);
$pricingSet1 = $pricingSet->process($context); $pricingSet1 = $pricingSet->process($context);


Expand Down

0 comments on commit e162a2a

Please sign in to comment.