Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Nov 11, 2024
1 parent 9f62a8f commit 4fa1512
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Foundation/Tests/PaymentMethodDependentShippingFeeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

namespace Vanilo\Foundation\Tests;


use Vanilo\Adjustments\Models\AdjustmentType;
use Vanilo\Cart\Facades\Cart;
use Vanilo\Checkout\Facades\Checkout;
Expand Down Expand Up @@ -79,12 +78,12 @@ public function it_calculates_the_default_price_when_the_shipping_method_has_no_
$shippingMethod1 = ShippingMethod::create([
'name' => 'Slow',
'calculator' => PaymentDependentShippingFeeCalculator::ID,
'configuration' => ['prices'=> ['default' => 5.99]],
'configuration' => ['prices' => ['default' => 5.99]],
]);
$shippingMethod2 = ShippingMethod::create([
'name' => 'Fast',
'calculator' => PaymentDependentShippingFeeCalculator::ID,
'configuration' => ['prices'=> ['default' => 8.99]],
'configuration' => ['prices' => ['default' => 8.99]],
]);

Cart::addItem($product);
Expand All @@ -105,12 +104,12 @@ public function it_creates_an_adjustment_with_the_default_price_when_there_is_no
$shippingMethod1 = ShippingMethod::create([
'name' => 'Delivery Standard #1',
'calculator' => PaymentDependentShippingFeeCalculator::ID,
'configuration' => ['prices'=> ['default' => 5.99]],
'configuration' => ['prices' => ['default' => 5.99]],
]);
$shippingMethod2 = ShippingMethod::create([
'name' => 'Delivery Rapid #2',
'calculator' => PaymentDependentShippingFeeCalculator::ID,
'configuration' => ['prices'=> ['default' => 8.99]],
'configuration' => ['prices' => ['default' => 8.99]],
]);

Cart::addItem($product);
Expand Down Expand Up @@ -142,7 +141,7 @@ public function it_creates_an_adjustment_with_the_default_price_when_the_payment
$shippingMethod1 = ShippingMethod::create([
'name' => 'Delivery X',
'calculator' => PaymentDependentShippingFeeCalculator::ID,
'configuration' => ['prices'=> ['default' => 5.99, '1' => 8]],
'configuration' => ['prices' => ['default' => 5.99, '1' => 8]],
]);

Cart::addItem($product);
Expand All @@ -163,7 +162,7 @@ public function it_changes_the_price_of_the_shipping_adjustment_when_the_payment
$shippingMethod1 = ShippingMethod::create([
'name' => 'Delivery Y',
'calculator' => PaymentDependentShippingFeeCalculator::ID,
'configuration' => ['prices'=> ['default' => 20, '3' => 15]],
'configuration' => ['prices' => ['default' => 20, '3' => 15]],
]);

Cart::addItem($product);
Expand Down

0 comments on commit 4fa1512

Please sign in to comment.