Skip to content

Commit 88d1443

Browse files
Rename step for background section
1 parent d2b07c7 commit 88d1443

2 files changed

Lines changed: 26 additions & 17 deletions

File tree

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@managing_invoices @cli
22
Feature: Generating invoices for previously placed orders
3-
In order to make my shop consistent with a newly installed plugin
4-
As a Shop Owner
5-
I want to easily generate invoices for orders placed before installation of the plugin
3+
In order to make my shop consistent with a newly installed plugin
4+
As a Shop Owner
5+
I want to easily generate invoices for orders placed before installation of the plugin
66

77
Background:
88
Given the store operates on a single channel in "United States"
@@ -21,20 +21,20 @@ Feature: Generating invoices for previously placed orders
2121
And the customer "Chloe Decker" addressed it to "Wilshire Blvd", "90010" "Los Angeles" in the "United States"
2222
And for the billing address of "Chloe Decker" in the "Wilshire Blvd", "90010" "Los Angeles", "United States"
2323
And the customer chose "UPS" shipping method with "Cash on Delivery" payment
24-
And this order has not been placed
24+
And this order has no number assigned
2525
And all invoices have been deleted
2626
And I am logged in as an administrator
2727

28-
Scenario: Having no previous invoices
29-
When I browse invoices
30-
Then I should not see any invoice for order "#00000777"
28+
Scenario: Having no previous invoices
29+
When I browse invoices
30+
Then I should not see any invoice for order "#00000777"
3131

32-
Scenario: Generating invoices for previously placed orders
33-
When I generate invoices for previously placed orders
34-
And I browse invoices
35-
Then I should see a single invoice for order "#00000777"
32+
Scenario: Generating invoices for previously placed orders
33+
When I generate invoices for previously placed orders
34+
And I browse invoices
35+
Then I should see a single invoice for order "#00000777"
3636

37-
Scenario: Not generating invoices for orders without number
38-
When I generate invoices for previously placed orders
39-
And I browse invoices
40-
Then there should be 1 invoice generated
37+
Scenario: Not generating invoices for orders without number
38+
When I generate invoices for previously placed orders
39+
And I browse invoices
40+
Then there should be 1 invoice generated

tests/Behat/Context/Setup/OrderContext.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Sylius package.
5+
*
6+
* (c) Sylius Sp. z o.o.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
declare(strict_types=1);
413

514
namespace Tests\Sylius\InvoicingPlugin\Behat\Context\Setup;
@@ -29,9 +38,9 @@ public function orderHasBeenPlacedInChannel(OrderInterface $order, ChannelInterf
2938
}
3039

3140
/**
32-
* @Given /^(this order) has not been placed$/
41+
* @Given /^(this order) has no number assigned$/
3342
*/
34-
public function orderHasNotBeenPlaced(OrderInterface $order): void
43+
public function orderHasNoNumberAssigned(OrderInterface $order): void
3544
{
3645
$order->setNumber(null);
3746

0 commit comments

Comments
 (0)