Remove unused

This commit is contained in:
Alex P 2022-01-25 15:49:43 +02:00
parent 5e10d137db
commit 23e68419f8
2 changed files with 0 additions and 4 deletions

View file

@ -121,7 +121,6 @@ class PurchaseUnitFactory {
$payee = $this->payee_repository->payee(); $payee = $this->payee_repository->payee();
$custom_id = (string) $order->get_id(); $custom_id = (string) $order->get_id();
$invoice_id = $this->prefix . $order->get_order_number(); $invoice_id = $this->prefix . $order->get_order_number();
$retry = $order->get_meta( 'ppcp-retry' ) ? '-' . $order->get_meta( 'ppcp-retry' ) : '';
$soft_descriptor = ''; $soft_descriptor = '';
$purchase_unit = new PurchaseUnit( $purchase_unit = new PurchaseUnit(

View file

@ -26,7 +26,6 @@ class PurchaseUnitFactoryTest extends TestCase
$wcOrder = Mockery::mock(\WC_Order::class); $wcOrder = Mockery::mock(\WC_Order::class);
$wcOrder->expects('get_order_number')->andReturn($this->wcOrderNumber); $wcOrder->expects('get_order_number')->andReturn($this->wcOrderNumber);
$wcOrder->expects('get_id')->andReturn($this->wcOrderId); $wcOrder->expects('get_id')->andReturn($this->wcOrderId);
$wcOrder->expects('get_meta')->andReturn('');
$amount = Mockery::mock(Amount::class); $amount = Mockery::mock(Amount::class);
$amountFactory = Mockery::mock(AmountFactory::class); $amountFactory = Mockery::mock(AmountFactory::class);
$amountFactory $amountFactory
@ -91,7 +90,6 @@ class PurchaseUnitFactoryTest extends TestCase
$wcOrder = Mockery::mock(\WC_Order::class); $wcOrder = Mockery::mock(\WC_Order::class);
$wcOrder->expects('get_order_number')->andReturn($this->wcOrderNumber); $wcOrder->expects('get_order_number')->andReturn($this->wcOrderNumber);
$wcOrder->expects('get_id')->andReturn($this->wcOrderId); $wcOrder->expects('get_id')->andReturn($this->wcOrderId);
$wcOrder->expects('get_meta')->andReturn('');
$amount = Mockery::mock(Amount::class); $amount = Mockery::mock(Amount::class);
$amountFactory = Mockery::mock(AmountFactory::class); $amountFactory = Mockery::mock(AmountFactory::class);
$amountFactory $amountFactory
@ -147,7 +145,6 @@ class PurchaseUnitFactoryTest extends TestCase
$wcOrder = Mockery::mock(\WC_Order::class); $wcOrder = Mockery::mock(\WC_Order::class);
$wcOrder->expects('get_order_number')->andReturn($this->wcOrderNumber); $wcOrder->expects('get_order_number')->andReturn($this->wcOrderNumber);
$wcOrder->expects('get_id')->andReturn($this->wcOrderId); $wcOrder->expects('get_id')->andReturn($this->wcOrderId);
$wcOrder->expects('get_meta')->andReturn('');
$amount = Mockery::mock(Amount::class); $amount = Mockery::mock(Amount::class);
$amountFactory = Mockery::mock(AmountFactory::class); $amountFactory = Mockery::mock(AmountFactory::class);
$amountFactory $amountFactory