Skip to content

Commit

Permalink
Merge pull request #31 from szepeviktor/patch-1
Browse files Browse the repository at this point in the history
Fix typo in OrderUpdateTest
  • Loading branch information
Zales0123 authored Aug 19, 2024
2 parents e52f4b0 + 43db25b commit b91f44b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Functional/OrderUpdateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected function setUp(): void

public function testItAllowsToChangeItemQuantity(): void
{
$order = $this->placeOrderProgramatically(quantity: 5);
$order = $this->placeOrderProgrammatically(quantity: 5);

/** @var ProductVariantInterface $variant */
$variant = $this->getVariantRepository()->findOneBy(['code' => '000F_office_grey_jeans-variant-0']);
Expand All @@ -61,7 +61,7 @@ public function testItAllowsToChangeItemQuantity(): void

public function testItAllowsToAddAndRemoveOrderItems(): void
{
$order = $this->placeOrderProgramatically(quantity: 5);
$order = $this->placeOrderProgrammatically(quantity: 5);

/** @var ProductVariantInterface $variant */
$variant = $this->getVariantRepository()->findOneBy(['code' => '000F_office_grey_jeans-variant-0']);
Expand All @@ -87,7 +87,7 @@ public function testItAllowsToAddAndRemoveOrderItems(): void

public function testItAllowsToAddDiscountsForTheWholeOrder(): void
{
$order = $this->placeOrderProgramatically(quantity: 5);
$order = $this->placeOrderProgrammatically(quantity: 5);
$initialOrderTotalWithoutTaxes = $this->getInitialTotal($order);

$this->loginAsAdmin();
Expand All @@ -101,7 +101,7 @@ public function testItAllowsToAddDiscountsForTheWholeOrder(): void

public function testItAllowsToAddAndRemoveDiscountsForTheWholeOrderMultipleTimes(): void
{
$order = $this->placeOrderProgramatically(quantity: 5);
$order = $this->placeOrderProgrammatically(quantity: 5);
$initialOrderTotalWithoutTaxes = $this->getInitialTotal($order);

$this->loginAsAdmin();
Expand All @@ -122,7 +122,7 @@ public function testItAllowsToAddAndRemoveDiscountsForTheWholeOrderMultipleTimes
public function testItDoesNotAllowToExceedTheInitialOrderTotal(): void
{
$this->makeVariantTrackedWithStockAndPrice('111F_patched_jeans_with_fancy_badges-variant-0', 100);
$order = $this->placeOrderProgramatically(quantity: 1);
$order = $this->placeOrderProgrammatically(quantity: 1);

/** @var ProductVariantInterface $variant */
$variant = $this->getVariantRepository()->findOneBy(['code' => '000F_office_grey_jeans-variant-0']);
Expand All @@ -146,7 +146,7 @@ public function testItAllowsToAddDiscountsForTheSpecificOrderItem(): void
{
$this->makeVariantTrackedWithStockAndPrice('000F_office_grey_jeans-variant-0', 100);

$order = $this->placeOrderProgramatically(quantity: 5);
$order = $this->placeOrderProgrammatically(quantity: 5);
$initialOrderTotalWithoutTaxes = $this->getInitialTotal($order);

$this->loginAsAdmin();
Expand All @@ -167,7 +167,7 @@ public function testItAllowsToAddAndRemoveDiscountsForTheOrderItemMultipleTimes(
{
$this->makeVariantTrackedWithStockAndPrice('000F_office_grey_jeans-variant-0', 100);

$order = $this->placeOrderProgramatically(quantity: 5);
$order = $this->placeOrderProgrammatically(quantity: 5);
$initialOrderTotalWithoutTaxes = $this->getInitialTotal($order);

$this->loginAsAdmin();
Expand All @@ -192,7 +192,7 @@ public function testItAllowsToAddStoreNotes(): void
{
$this->makeVariantTrackedWithStockAndPrice('000F_office_grey_jeans-variant-0', 100);

$order = $this->placeOrderProgramatically(quantity: 5);
$order = $this->placeOrderProgrammatically(quantity: 5);

$this->loginAsAdmin();
$this->addStoreNotes($order->getId(), 'store notes');
Expand All @@ -206,7 +206,7 @@ public function testItAllowsToAddStoreNotes(): void
self::assertSame('store notes', $order->getStoreNotes());
}

private function placeOrderProgramatically(
private function placeOrderProgrammatically(
string $variantCode = '000F_office_grey_jeans-variant-0',
int $quantity = 1,
): EditableOrderInterface {
Expand Down

0 comments on commit b91f44b

Please sign in to comment.