Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleanup, use Pimple based PricingContext

  • Loading branch information...
commit 4cb9b2106e4cba5d89fb1709b204b565c27c227d 1 parent 7fe1710
@iampersistent iampersistent authored
View
2  lib/Vespolina/Billing/Gateway/BillingGateway.php
@@ -17,7 +17,7 @@ class BillingGateway implements BillingGatewayInterface
* @param \Molino\MolinoInterface $molino
* @param string $managedClass
*/
- public function __construct(MolinoInterface $molino, $billingAgreementClass, $billingRequestClass)
+ public function __construct(MolinoInterface $molino, $billingAgreementClass)
{
if (!class_exists($billingAgreementClass) ||
!in_array('Vespolina\Entity\Billing\BillingAgreementInterface', class_implements($billingAgreementClass))) {
View
4 tests/Manager/BillingInvoiceManagerTest.php
@@ -4,7 +4,7 @@
use Vespolina\Entity\Partner\PartnerInterface;
use Vespolina\Entity\Order\ItemInterface;
use Vespolina\Entity\Product\ProductInterface;
-use ImmersiveLabs\Pricing\Entity\PricingContext;
+use Vespolina\Entity\Pricing\PricingContext;
use Vespolina\Entity\Billing\BillingRequest;
/**
* @group billing-invoice-manager
@@ -78,7 +78,7 @@ private function createOrder(PartnerInterface $partner)
$item = $this->getOrderManager()->addProductToOrder($order, $product);
$context = new PricingContext();
- $context->set('partner', $order->getPartner());
+ $context['partner'] = $order->getPartner();
$this->getOrderManager()->updateOrderPricing($order, $context);
$this->getOrderManager()->updateOrder($order);
Please sign in to comment.
Something went wrong with that request. Please try again.