-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CoreBundle] also add tests for new customer-deletion rule
- Loading branch information
1 parent
7bd8560
commit 80f2193
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@order @order_customer_deletion | ||
Feature: Create a new order | ||
|
||
Background: | ||
Given the site operates on a store in "Austria" | ||
And the site operates on locale "en" | ||
And the site has a tax rate "AT" with "20%" rate | ||
And the site has a tax rule group "AT" | ||
And the tax rule group has a tax rule for country "Austria" with tax rate "AT" | ||
And the site has a product "T-Shirt" priced at 2000 | ||
And the product has the tax rule group "AT" | ||
And the site has a customer "some-customer@something.com" | ||
And the customer "some-customer@something.com" has an address with country "Austria", "4600", "Wels", "Freiung", "9-11/N3" | ||
|
||
And the cart belongs to customer "some-customer@something.com" | ||
|
||
Scenario: Create a new order and delete the customer | ||
Given I add the product "T-Shirt" to my cart | ||
And the cart ships to customer "some-customer@something.com" address with postcode "4600" | ||
And the cart invoices to customer "some-customer@something.com" address with postcode "4600" | ||
And I create an order from my cart | ||
Then It should throw an error deleting the customer "some-customer@something.com" | ||
|
||
Scenario: Just delete an Customer Account | ||
Given the site has a customer "some-other@something.com" | ||
And the customer "some-other@something.com" has an address with country "Austria", "4600", "Wels", "Freiung", "9-11/N3" | ||
Then It should not throw an error deleting the customer "some-other@something.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters