Skip to content

Commit

Permalink
OP-334: Indentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GracjanJozefczyk committed Jun 25, 2024
1 parent 43d4930 commit ec849b3
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions spec/Action/ConvertPaymentActionSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,48 +50,48 @@ function it_executes(
OrderItemInterface $orderItem,
ProductInterface $product
): void {
$customer->getEmail()->willReturn('[email protected]');
$customer->getId()->willReturn(1);

$orderItem->getProduct()->willReturn($product);
$orderItem->getQuantity()->willReturn(1);
$orderItem->getUnitPrice()->willReturn(445535);
$arrayIterator->valid()->willReturn(true, false);
$arrayIterator->current()->willReturn($orderItem);
$arrayIterator->next()->shouldBeCalled();
$arrayIterator->rewind()->shouldBeCalled();

$items->getIterator()->willReturn($arrayIterator);

$order->getNumber()->willReturn(000001);
$order->getCustomer()->willReturn($customer);
$order->getLocaleCode()->willReturn('pl_PL');
$order->getCurrencyCode()->willReturn('USD');
$order->getShippingAddress()->willReturn(null);
$order->getItems()->willReturn($items);

$payment->getOrder()->willReturn($order);
$payment->getId()->willReturn(1);
$payment->getAmount()->willReturn(445535);
$payment->getCurrencyCode()->willReturn('PLN');

$paymentDescriptionProvider->getPaymentDescription($payment)->willReturn('description');

$request->getSource()->willReturn($payment);
$request->getTo()->willReturn('array');
$request->setResult([
'p24_amount' => 445535,
'p24_currency' => 'PLN',
'p24_description' => 'description',
'p24_language' => 'pl_PL',
'p24_email' => '[email protected]',
'p24_name_1' => null,
'p24_quantity_1' => 1,
'p24_price_1' => 445535
])->shouldBeCalled();

$this->execute($request);
}
$customer->getEmail()->willReturn('[email protected]');
$customer->getId()->willReturn(1);

$orderItem->getProduct()->willReturn($product);
$orderItem->getQuantity()->willReturn(1);
$orderItem->getUnitPrice()->willReturn(445535);
$arrayIterator->valid()->willReturn(true, false);
$arrayIterator->current()->willReturn($orderItem);
$arrayIterator->next()->shouldBeCalled();
$arrayIterator->rewind()->shouldBeCalled();

$items->getIterator()->willReturn($arrayIterator);

$order->getNumber()->willReturn(000001);
$order->getCustomer()->willReturn($customer);
$order->getLocaleCode()->willReturn('pl_PL');
$order->getCurrencyCode()->willReturn('USD');
$order->getShippingAddress()->willReturn(null);
$order->getItems()->willReturn($items);

$payment->getOrder()->willReturn($order);
$payment->getId()->willReturn(1);
$payment->getAmount()->willReturn(445535);
$payment->getCurrencyCode()->willReturn('PLN');

$paymentDescriptionProvider->getPaymentDescription($payment)->willReturn('description');

$request->getSource()->willReturn($payment);
$request->getTo()->willReturn('array');
$request->setResult([
'p24_amount' => 445535,
'p24_currency' => 'PLN',
'p24_description' => 'description',
'p24_language' => 'pl_PL',
'p24_email' => '[email protected]',
'p24_name_1' => null,
'p24_quantity_1' => 1,
'p24_price_1' => 445535
])->shouldBeCalled();

$this->execute($request);
}

function it_supports_only_convert_request_payment_source_and_array_to(
Convert $request,
Expand Down

0 comments on commit ec849b3

Please sign in to comment.