mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[Behat] Removed the default "EU" zone
This commit is contained in:
parent
32a4aaf013
commit
57659649c3
36 changed files with 154 additions and 215 deletions
|
|
@ -5,10 +5,7 @@ Feature: Selecting default tax zone for a channel
|
|||
I want to be able to select default tax zone
|
||||
|
||||
Background:
|
||||
Given the store has currency "Euro"
|
||||
And the store has locale "English (United States)"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
Given the store operates on a single channel in "United States"
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui
|
||||
|
|
@ -16,26 +13,26 @@ Feature: Selecting default tax zone for a channel
|
|||
Given I want to create a new channel
|
||||
When I specify its code as "MOBILE"
|
||||
And I name it "Mobile store"
|
||||
And I select the "European Union" as default tax zone
|
||||
And I choose "Euro" as a default currency
|
||||
And I select the "United States" as default tax zone
|
||||
And I choose "USD" as a default currency
|
||||
And I choose "English (United States)" as a default locale
|
||||
And I add it
|
||||
Then I should be notified that it has been successfully created
|
||||
And the default tax zone for the "Mobile store" channel should be "European Union"
|
||||
And the default tax zone for the "Mobile store" channel should be "United States"
|
||||
|
||||
@ui
|
||||
Scenario: Selecting default tax zone for existing channel
|
||||
Given the store operates on a channel named "Web store"
|
||||
And I want to modify this channel
|
||||
When I select the "European Union" as default tax zone
|
||||
When I select the "United States" as default tax zone
|
||||
And I save my changes
|
||||
Then I should be notified that it has been successfully edited
|
||||
And the default tax zone for the "Web store" channel should be "European Union"
|
||||
And the default tax zone for the "Web store" channel should be "United States"
|
||||
|
||||
@ui
|
||||
Scenario: Removing existing channel default tax zone
|
||||
Given the store operates on a channel named "Web store"
|
||||
And its default tax zone is zone "EU"
|
||||
And its default tax zone is zone "US"
|
||||
When I want to modify this channel
|
||||
And I remove its default tax zone
|
||||
And I save my changes
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ Feature: Selecting available shipping methods for a channel
|
|||
I want to be able to select available shipping methods
|
||||
|
||||
Background:
|
||||
Given the store has currency "Euro"
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store has currency "Euro"
|
||||
And the store has locale "English (United States)"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
And the store allows shipping with "UPS Carrier" identified by "UPS_CARRIER"
|
||||
And I am logged in as an administrator
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ Feature: Choosing province for country
|
|||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store operates in "Nepal"
|
||||
And country "United States" has the "New York" province with "NY" code
|
||||
And the store ships to "Nepal"
|
||||
And the store has a product "The Dark Knight T-Shirt" priced at "$49.99"
|
||||
And the store ships everywhere for free
|
||||
And I am a logged in customer
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ Feature: Seeing tax total on order summary page
|
|||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And default tax zone is "US"
|
||||
And the store has "VAT" tax rate of 23% for "Clothes" within "US" zone
|
||||
And the store has a product "The Sorting Hat" priced at "$100.00"
|
||||
And it belongs to "Clothes" tax category
|
||||
|
|
|
|||
|
|
@ -21,15 +21,14 @@ Feature: Preventing not available shipping method selection
|
|||
|
||||
@ui
|
||||
Scenario: Not being able to select shipping method not available for my shipping address
|
||||
Given there is a zone "EU" containing all members of the European Union
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
Given there is a zone "The Rest of the World" containing all other countries
|
||||
And the store has "Dragon Post" shipping method with "$30.00" fee for the rest of the world
|
||||
And the store has "Raven Post" shipping method with "$10.00" fee within "EU" zone
|
||||
And the store has "Raven Post" shipping method with "$10.00" fee within "US" zone
|
||||
And I have product "Targaryen T-Shirt" in the cart
|
||||
When I am at the checkout addressing step
|
||||
And I specify the shipping address as "Ankh Morpork", "Frost Alley", "90210", "United States" for "Jon Snow"
|
||||
And I complete the addressing step
|
||||
Then I should not be able to select "Raven Post" shipping method
|
||||
Then I should not be able to select "Dragon Post" shipping method
|
||||
|
||||
@ui
|
||||
Scenario: Not being able to select shipping method not available for order channel
|
||||
|
|
@ -43,9 +42,8 @@ Feature: Preventing not available shipping method selection
|
|||
|
||||
@ui
|
||||
Scenario: Being alerted about no shipping method available
|
||||
Given there is a zone "EU" containing all members of the European Union
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
And the store has "Dragon Post" shipping method with "$30.00" fee within "EU" zone
|
||||
Given there is a zone "The Rest of the World" containing all other countries
|
||||
And the store has "Dragon Post" shipping method with "$30.00" fee for the rest of the world
|
||||
And the store has disabled "Raven Post" shipping method with "$10.00" fee
|
||||
And I have product "Targaryen T-Shirt" in the cart
|
||||
When I am at the checkout addressing step
|
||||
|
|
|
|||
|
|
@ -6,18 +6,15 @@ Feature: Seeing aggregated taxes of an order
|
|||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
And default tax zone is "US"
|
||||
And the store has "VAT" tax rate of 23% for "Standard US services" within "RoW" zone
|
||||
And the store has "Low VAT" tax rate of 10% for "Lowered US services" within "RoW" zone
|
||||
And the store has "VAT" tax rate of 23% for "Standard US services" within "US" zone
|
||||
And the store has "Low VAT" tax rate of 10% for "Lowered US services" within "US" zone
|
||||
And the store has a product "Composite bow" priced at "$100.00"
|
||||
And it belongs to "Standard US services" tax category
|
||||
And the store has a product "Claymore" priced at "$50.00"
|
||||
And it belongs to "Lowered US services" tax category
|
||||
And the store has a product "Bastard sword" priced at "$150.00"
|
||||
And it belongs to "Lowered US services" tax category
|
||||
And the store has "DHL" shipping method with "$10.00" fee within "RoW" zone
|
||||
And the store has "DHL" shipping method with "$10.00" fee within "US" zone
|
||||
And shipping method "DHL" belongs to "Standard US services" tax category
|
||||
And the store allows paying offline
|
||||
And there is a customer "charles.the.great@medieval.com" that placed an order "#00000001"
|
||||
|
|
|
|||
|
|
@ -6,14 +6,11 @@ Feature: Seeing order item detailed data
|
|||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
And default tax zone is "US"
|
||||
And the store has "VAT" tax rate of 10% for "T-Shirts" within "RoW" zone
|
||||
And the store has "VAT" tax rate of 10% for "T-Shirts" within "US" zone
|
||||
And the store classifies its products as "T-Shirts"
|
||||
And the store has a product "Iron Man T-Shirt" priced at "$39.00"
|
||||
And it belongs to "T-Shirts" tax category
|
||||
And the store ships everything for free within "RoW" zone
|
||||
And the store ships everything for free within "US" zone
|
||||
And the store allows paying with "Cash on Delivery"
|
||||
And there is a promotion "#teamIronMan promotion"
|
||||
And it gives "$12.00" discount to every order with quantity at least 3
|
||||
|
|
|
|||
|
|
@ -6,13 +6,11 @@ Feature: Seeing included in price taxes of order items
|
|||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
And default tax zone is "RoW"
|
||||
And the store has included in price "Guns tax" tax rate of 10% for "Guns" within "RoW" zone
|
||||
And the store has included in price "Guns tax" tax rate of 10% for "Guns" within "US" zone
|
||||
And default tax zone is "US"
|
||||
And the store has a product "Winchester M1866" priced at "$220.00"
|
||||
And it belongs to "Guns" tax category
|
||||
And the store ships everything for free within "RoW" zone
|
||||
And the store ships everywhere for free
|
||||
And the store allows paying offline
|
||||
And there is a customer "lucy@teamlucifer.com" that placed an order "#00000666"
|
||||
And I am logged in as an administrator
|
||||
|
|
@ -24,6 +22,5 @@ Feature: Seeing included in price taxes of order items
|
|||
When I view the summary of the order "#00000666"
|
||||
And I check "Winchester M1866" data
|
||||
Then its tax should be $40.00
|
||||
And the order's shipping total should be "$0.00"
|
||||
And the order's tax total should be "$40.00"
|
||||
And the order's total should be "$440.00"
|
||||
|
|
|
|||
|
|
@ -6,14 +6,11 @@ Feature: Seeing taxes of order items
|
|||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
And default tax zone is "RoW"
|
||||
And the store has "VAT" tax rate of 23% for "Clothes" within "RoW" zone
|
||||
And the store has "VAT" tax rate of 23% for "Clothes" within "US" zone
|
||||
And the store has a product "PHP T-Shirt" priced at "$80.00"
|
||||
And the store has a product "Symfony2 T-Shirt" priced at "$140.00"
|
||||
And it belongs to "Clothes" tax category
|
||||
And the store ships everything for free within "RoW" zone
|
||||
And the store ships everything for free within "US" zone
|
||||
And the store allows paying offline
|
||||
And there is a customer "lucy@teamlucifer.com" that placed an order "#00000666"
|
||||
And I am logged in as an administrator
|
||||
|
|
|
|||
|
|
@ -6,14 +6,11 @@ Feature: Seeing taxes of an order
|
|||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
And default tax zone is "RoW"
|
||||
And the store has "VAT" tax rate of 23% for "Clothes" within "RoW" zone
|
||||
And the store has "Shipping VAT" tax rate of 23% for "Shipping Services" within "RoW" zone
|
||||
And the store has "VAT" tax rate of 23% for "Clothes" within "US" zone
|
||||
And the store has "Shipping VAT" tax rate of 23% for "Shipping Services" within "US" zone
|
||||
And the store has a product "Symfony2 T-Shirt" priced at "$140.00"
|
||||
And it belongs to "Clothes" tax category
|
||||
And the store has "DHL" shipping method with "$10.00" fee within "RoW" zone
|
||||
And the store has "DHL" shipping method with "$10.00" fee within "US" zone
|
||||
And shipping method "DHL" belongs to "Shipping Services" tax category
|
||||
And the store allows paying offline
|
||||
And there is a customer "lucy@teamlucifer.com" that placed an order "#00000666"
|
||||
|
|
|
|||
|
|
@ -6,14 +6,11 @@ Feature: Seeing shipping total of an order
|
|||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
And default tax zone is "RoW"
|
||||
And the store has "VAT" tax rate of 23% for "Hogwart stuff" within "RoW" zone
|
||||
And the store has "Shipping VAT" tax rate of 23% for "Shipping Services" within "RoW" zone
|
||||
And the store has "VAT" tax rate of 23% for "Hogwart stuff" within "US" zone
|
||||
And the store has "Shipping VAT" tax rate of 23% for "Shipping Services" within "US" zone
|
||||
And the store has a product "Gryffindor scarf" priced at "$100.00"
|
||||
And it belongs to "Hogwart stuff" tax category
|
||||
And the store has "Owl post" shipping method with "$10.00" fee within "RoW" zone
|
||||
And the store has "Owl post" shipping method with "$10.00" fee within "US" zone
|
||||
And shipping method "Owl post" belongs to "Shipping Services" tax category
|
||||
And there is a promotion "50% shipping discount"
|
||||
And it gives "50%" discount on shipping to every order
|
||||
|
|
|
|||
|
|
@ -6,10 +6,7 @@ Feature: Seeing order's payment amount including all fees
|
|||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
And default tax zone is "RoW"
|
||||
And the store has "VAT" tax rate of 23% for "Clothes" for the rest of the world
|
||||
And the store has "VAT" tax rate of 23% for "Clothes" within "US" zone
|
||||
And the store has a product "Angel T-Shirt" priced at "$39.00"
|
||||
And it belongs to "Clothes" tax category
|
||||
And the store has a product "Angel Mug" priced at "$19.00"
|
||||
|
|
|
|||
|
|
@ -5,18 +5,16 @@ Feature: Apply correct shipping fee with product taxes on order
|
|||
I want to have correct shipping fees and all taxes applied to my order
|
||||
|
||||
Background:
|
||||
Given the store operates on a single channel
|
||||
And the store ships to "Germany" and "United States"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
And default tax zone is "RoW"
|
||||
And the store has "EU VAT" tax rate of 23% for "Clothes" within "EU" zone
|
||||
And the store ships to "Germany"
|
||||
And the store has "US VAT" tax rate of 23% for "Clothes" within "US" zone
|
||||
And the store has "Low tax" tax rate of 10% for "Clothes" for the rest of the world
|
||||
And the store has "EU Shipping VAT" tax rate of 23% for "Shipping Services" within "EU" zone
|
||||
And the store has "US Shipping VAT" tax rate of 23% for "Shipping Services" within "US" zone
|
||||
And the store has "Low Shipping VAT" tax rate of 10% for "Shipping Services" for the rest of the world
|
||||
And the store has a product "PHP T-Shirt" priced at "$100.00"
|
||||
And it belongs to "Clothes" tax category
|
||||
And the store has "DHL" shipping method with "$10.00" fee within "EU" zone
|
||||
And the store has "DHL" shipping method with "$10.00" fee within "US" zone
|
||||
And the store has "FedEx" shipping method with "$20.00" fee for the rest of the world
|
||||
And shipping method "DHL" belongs to "Shipping Services" tax category
|
||||
And shipping method "FedEx" belongs to "Shipping Services" tax category
|
||||
|
|
@ -26,17 +24,17 @@ Feature: Apply correct shipping fee with product taxes on order
|
|||
@ui
|
||||
Scenario: Proper shipping fee, tax and product tax
|
||||
Given I have product "PHP T-Shirt" in the cart
|
||||
When I proceed selecting "FedEx" shipping method
|
||||
When I proceed selecting "DHL" shipping method
|
||||
And I choose "Offline" payment method
|
||||
Then my cart total should be "$132.00"
|
||||
And my cart taxes should be "$12.00"
|
||||
And my cart shipping total should be "$22.00"
|
||||
Then my cart total should be "$135.30"
|
||||
And my cart taxes should be "$25.30"
|
||||
And my cart shipping total should be "$12.30"
|
||||
|
||||
@ui
|
||||
Scenario: Proper shipping fee, tax and products' taxes after addressing
|
||||
Given I have 3 products "PHP T-Shirt" in the cart
|
||||
When I proceed selecting "Germany" as shipping country with "DHL" method
|
||||
When I proceed selecting "Germany" as shipping country with "FedEx" method
|
||||
And I choose "Offline" payment method
|
||||
Then my cart total should be "$381.30"
|
||||
And my cart taxes should be "$71.30"
|
||||
And my cart shipping total should be "$12.30"
|
||||
Then my cart total should be "$352.00"
|
||||
And my cart taxes should be "$32.00"
|
||||
And my cart shipping total should be "$22.00"
|
||||
|
|
|
|||
|
|
@ -5,17 +5,15 @@ Feature: Apply correct shipping fee with taxes on order
|
|||
I want to have correct shipping fees and taxes applied to my order
|
||||
|
||||
Background:
|
||||
Given the store operates on a single channel
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
And the store ships to "United States" and "Germany"
|
||||
And default tax zone is "RoW"
|
||||
And the store has "EU VAT" tax rate of 23% for "Clothes" within "EU" zone
|
||||
And the store ships to "Germany"
|
||||
And the store has "NA VAT" tax rate of 23% for "Clothes" within "US" zone
|
||||
And the store has "Low tax" tax rate of 10% for "Clothes" for the rest of the world
|
||||
And the store has "Shipping EU VAT" tax rate of 23% for "Shipping Services" within "EU" zone
|
||||
And the store has "Shipping NA VAT" tax rate of 23% for "Shipping Services" within "US" zone
|
||||
And the store has "Shipping Low tax" tax rate of 10% for "Shipping Services" for the rest of the world
|
||||
And the store has a product "PHP T-Shirt" priced at "$100.00"
|
||||
And the store has "DHL" shipping method with "$10.00" fee within "EU" zone
|
||||
And the store has "DHL" shipping method with "$10.00" fee within "US" zone
|
||||
And the store has "DHL-World" shipping method with "$20.00" fee for the rest of the world
|
||||
And shipping method "DHL" belongs to "Shipping Services" tax category
|
||||
And shipping method "DHL-World" belongs to "Shipping Services" tax category
|
||||
|
|
@ -25,17 +23,17 @@ Feature: Apply correct shipping fee with taxes on order
|
|||
@ui
|
||||
Scenario: Proper shipping fee and tax
|
||||
Given I have product "PHP T-Shirt" in the cart
|
||||
When I proceed selecting "DHL-World" shipping method
|
||||
And I choose "Offline" payment method
|
||||
Then my cart total should be "$122.00"
|
||||
And my cart taxes should be "$2.00"
|
||||
And my cart shipping total should be "$22.00"
|
||||
|
||||
@ui
|
||||
Scenario: Proper shipping fee and tax after addressing
|
||||
Given I have product "PHP T-Shirt" in the cart
|
||||
When I proceed selecting "Germany" as shipping country with "DHL" method
|
||||
When I proceed selecting "DHL" shipping method
|
||||
And I choose "Offline" payment method
|
||||
Then my cart total should be "$112.30"
|
||||
And my cart taxes should be "$2.30"
|
||||
And my cart shipping total should be "$12.30"
|
||||
|
||||
@ui
|
||||
Scenario: Proper shipping fee and tax after addressing
|
||||
Given I have product "PHP T-Shirt" in the cart
|
||||
When I proceed selecting "Germany" as shipping country with "DHL-World" method
|
||||
And I choose "Offline" payment method
|
||||
Then my cart total should be "$122.00"
|
||||
And my cart taxes should be "$2.00"
|
||||
And my cart shipping total should be "$22.00"
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ Feature: Adding a new shipping method
|
|||
I want to add a new shipping method to the registry
|
||||
|
||||
Background:
|
||||
Given the store is available in "English (United States)"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store is available in "English (United States)"
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui @javascript
|
||||
|
|
@ -14,7 +14,7 @@ Feature: Adding a new shipping method
|
|||
Given I want to create a new shipping method
|
||||
When I specify its code as "FED_EX_CARRIER"
|
||||
And I name it "FedEx Carrier" in "English (United States)"
|
||||
And I define it for the "European Union" zone
|
||||
And I define it for the "United States" zone
|
||||
And I choose "Flat rate per shipment" calculator
|
||||
And I specify its amount as 50
|
||||
And I add it
|
||||
|
|
@ -26,8 +26,8 @@ Feature: Adding a new shipping method
|
|||
Given I want to create a new shipping method
|
||||
When I specify its code as "FED_EX_CARRIER"
|
||||
And I name it "FedEx Carrier" in "English (United States)"
|
||||
And I describe it as "FedEx Carrier shipping method for European Union" in "English (United States)"
|
||||
And I define it for the "European Union" zone
|
||||
And I describe it as "FedEx Carrier shipping method for United States" in "English (United States)"
|
||||
And I define it for the "United States" zone
|
||||
And I choose "Flat rate per shipment" calculator
|
||||
And I specify its amount as 50
|
||||
And I add it
|
||||
|
|
@ -39,7 +39,7 @@ Feature: Adding a new shipping method
|
|||
Given I want to create a new shipping method
|
||||
When I specify its code as "FED_EX_CARRIER"
|
||||
And I name it "FedEx Carrier" in "English (United States)"
|
||||
And I define it for the "European Union" zone
|
||||
And I define it for the "United States" zone
|
||||
And I choose "Flat rate per unit" calculator
|
||||
And I specify its amount as 20
|
||||
And I add it
|
||||
|
|
|
|||
|
|
@ -5,8 +5,7 @@ Feature: Browsing shipping methods
|
|||
I want to be able to browse list of them
|
||||
|
||||
Background:
|
||||
Given the store is available in "English (United States)"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store allows shipping with "UPS Carrier" and "FedEx Carrier"
|
||||
And I am logged in as an administrator
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,7 @@ Feature: Deleting a shipping method
|
|||
I want to be able to delete a shipping method
|
||||
|
||||
Background:
|
||||
Given the store is available in "English (United States)"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store allows shipping with "UPS Ground"
|
||||
And I am logged in as an administrator
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ Feature: Editing shipping method
|
|||
I want to be able to edit a shipping method
|
||||
|
||||
Background:
|
||||
Given the store is available in "English (United States)"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store is available in "English (United States)"
|
||||
And the store allows shipping with "UPS Carrier" identified by "UPS_CARRIER"
|
||||
And I am logged in as an administrator
|
||||
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ Feature: Shipping method flat rate per shipment calculator validation
|
|||
I want to be prevented from adding it without specifying amount
|
||||
|
||||
Background:
|
||||
Given the store is available in "English (United States)"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given I am logged in as an administrator
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store is available in "English (United States)"
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui @javascript
|
||||
Scenario: Trying to add a new shipping method with flat rate per shipment calculator without specifying its amount
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ Feature: Shipping method flat rate per unit calculator validation
|
|||
I want to be prevented from adding it without specifying amount
|
||||
|
||||
Background:
|
||||
Given the store is available in "English (United States)"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given I am logged in as an administrator
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store is available in "English (United States)"
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui @javascript
|
||||
Scenario: Trying to add a new shipping method with flat rate per unit calculator without specifying its amount
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ Feature: Shipping method unique code validation
|
|||
I want to be prevented from adding two shipping methods with same code
|
||||
|
||||
Background:
|
||||
Given the store is available in "English (United States)"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store is available in "English (United States)"
|
||||
And the store allows shipping with "UPS Ground" identified by "UPS"
|
||||
And I am logged in as an administrator
|
||||
|
||||
|
|
@ -15,7 +15,7 @@ Feature: Shipping method unique code validation
|
|||
Given I want to create a new shipping method
|
||||
When I specify its code as "UPS"
|
||||
And I name it "FedEx Carrier" in "English (United States)"
|
||||
And I define it for the "European Union" zone
|
||||
And I define it for the "United States" zone
|
||||
And I choose "Flat rate per shipment" calculator
|
||||
And I specify its amount as 50
|
||||
And I try to add it
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ Feature: Shipping method validation
|
|||
I want to be prevented from adding it without specifying required fields
|
||||
|
||||
Background:
|
||||
Given the store is available in "English (United States)"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store is available in "English (United States)"
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui
|
||||
|
|
@ -44,4 +44,4 @@ Feature: Shipping method validation
|
|||
When I remove its name from "English (United States)" translation
|
||||
And I try to save my changes
|
||||
Then I should be notified that name is required
|
||||
And this shipping method should still be named "European Union Sales Tax"
|
||||
And this shipping method should still be named "United States Sales Tax"
|
||||
|
|
|
|||
|
|
@ -5,8 +5,7 @@ Feature: Toggling a shipping method
|
|||
I want to be able to switch state of shipping method between enable and disable
|
||||
|
||||
Background:
|
||||
Given the store is available in "English (United States)"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store allows shipping with "UPS Carrier" identified by "UPS_CARRIER"
|
||||
And I am logged in as an administrator
|
||||
|
||||
|
|
|
|||
|
|
@ -5,13 +5,11 @@ Feature: Apply correct taxes based on customer data
|
|||
I want to have correct taxes applied to my order
|
||||
|
||||
Background:
|
||||
Given the store operates on a single channel
|
||||
And the store ships to "United States" and "Germany"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
And default tax zone is "RoW"
|
||||
And the store ships to "Germany"
|
||||
And the store ships everywhere for free
|
||||
And the store has "EU VAT" tax rate of 23% for "Clothes" within "EU" zone
|
||||
And the store has "NA VAT" tax rate of 23% for "Clothes" within "US" zone
|
||||
And the store has "VAT" tax rate of 10% for "Clothes" for the rest of the world
|
||||
And the store has a product "PHP T-Shirt" priced at "$100.00"
|
||||
And it belongs to "Clothes" tax category
|
||||
|
|
|
|||
|
|
@ -5,14 +5,13 @@ Feature: Apply correct taxes for products with different tax rates for different
|
|||
I want to have correct taxes applied to my order
|
||||
|
||||
Background:
|
||||
Given the store operates on a single channel
|
||||
And the store ships to "Germany" and "United States"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
And default tax zone is "RoW"
|
||||
And the store ships to "Germany"
|
||||
And the store ships everywhere for free
|
||||
And the store has "No tax" tax rate of 0% for "Clothes" within "EU" zone
|
||||
And the store has "Low VAT" tax rate of 5% for "Mugs" within "EU" zone
|
||||
And default tax zone is "US"
|
||||
And the store has "No tax" tax rate of 0% for "Clothes" within "US" zone
|
||||
And the store has "Low VAT" tax rate of 5% for "Mugs" within "US" zone
|
||||
And the store has "VAT" tax rate of 23% for "Clothes" for the rest of the world
|
||||
And the store has a product "PHP T-Shirt" priced at "$100.00"
|
||||
And it belongs to "Clothes" tax category
|
||||
|
|
@ -23,34 +22,34 @@ Feature: Apply correct taxes for products with different tax rates for different
|
|||
@ui
|
||||
Scenario: Displaying correct tax before specifying shipping address
|
||||
When I add product "PHP T-Shirt" to the cart
|
||||
Then my cart total should be "$123.00"
|
||||
And my cart taxes should be "$23.00"
|
||||
Then my cart total should be "$100.00"
|
||||
And my cart taxes should be "$0.00"
|
||||
|
||||
@ui
|
||||
Scenario: Displaying correct tax after specifying shipping address
|
||||
Given I have product "PHP T-Shirt" in the cart
|
||||
When I proceed selecting "Germany" as shipping country
|
||||
Then my cart total should be "$100.00"
|
||||
And my cart taxes should be "$0.00"
|
||||
Then my cart total should be "$123.00"
|
||||
And my cart taxes should be "$23.00"
|
||||
|
||||
@ui
|
||||
Scenario: Displaying correct taxes for multiple products after specifying shipping address
|
||||
Given I have 3 products "PHP T-Shirt" in the cart
|
||||
When I proceed selecting "Germany" as shipping country
|
||||
Then my cart total should be "$300.00"
|
||||
And my cart taxes should be "$0.00"
|
||||
Then my cart total should be "$369.00"
|
||||
And my cart taxes should be "$69.00"
|
||||
|
||||
@ui
|
||||
Scenario: Displaying correct taxes for multiple products from different zones before specifying shipping address
|
||||
When I add product "PHP T-Shirt" to the cart
|
||||
And I add 2 products "Symfony Mug" to the cart
|
||||
Then my cart total should be "$223.00"
|
||||
And my cart taxes should be "$23.00"
|
||||
Then my cart total should be "$205.00"
|
||||
And my cart taxes should be "$5.00"
|
||||
|
||||
@ui
|
||||
Scenario: Displaying correct taxes for multiple products from different zones after specifying shipping address
|
||||
Given I have product "PHP T-Shirt" in the cart
|
||||
And I have 2 products "Symfony Mug" in the cart
|
||||
When I proceed selecting "Germany" as shipping country
|
||||
Then my cart total should be "$205.00"
|
||||
And my cart taxes should be "$5.00"
|
||||
Then my cart total should be "$223.00"
|
||||
And my cart taxes should be "$23.00"
|
||||
|
|
|
|||
|
|
@ -5,26 +5,25 @@ Feature: Apply correct taxes on visitor cart
|
|||
I want to have correct taxes applied to my order
|
||||
|
||||
Background:
|
||||
Given the store operates on a single channel
|
||||
And the store ships to "United States" and "Austria"
|
||||
And there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And there is a zone "The Rest of the World" containing all other countries
|
||||
And default tax zone is "RoW"
|
||||
And the store ships to "Austria"
|
||||
And the store ships everywhere for free
|
||||
And default tax zone is "US"
|
||||
And the store has "RoW VAT" tax rate of 10% for "Clothes" for the rest of the world
|
||||
And the store has "EU VAT" tax rate of 23% for "Clothes" within "EU" zone
|
||||
And the store has "US VAT" tax rate of 23% for "Clothes" within "US" zone
|
||||
And the store has a product "PHP T-Shirt" priced at "$100.00"
|
||||
And it belongs to "Clothes" tax category
|
||||
|
||||
@ui
|
||||
Scenario: Proper taxes for taxed product
|
||||
When I add product "PHP T-Shirt" to the cart
|
||||
Then my cart total should be "$110.00"
|
||||
And my cart taxes should be "$10.00"
|
||||
Then my cart total should be "$123.00"
|
||||
And my cart taxes should be "$23.00"
|
||||
|
||||
@ui
|
||||
Scenario: Proper taxes after specifying shipping address
|
||||
Given I have product "PHP T-Shirt" in the cart
|
||||
When I proceed as guest "john@example.com" with "Austria" as shipping country
|
||||
Then my cart total should be "$123.00"
|
||||
And my cart taxes should be "$23.00"
|
||||
Then my cart total should be "$110.00"
|
||||
And my cart taxes should be "$10.00"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ Feature: Apply different taxes for variants with different tax category
|
|||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And default tax zone is "US"
|
||||
And the store has "EU VAT" tax rate of 23% for "Mugs" within "US" zone
|
||||
And the store has "US VAT" tax rate of 23% for "Mugs" within "US" zone
|
||||
And the store has "Low VAT" tax rate of 5% for "Cheap Mugs" within "US" zone
|
||||
And the store has a product "PHP Mug"
|
||||
And it comes in the following variations:
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ Feature: Round taxes on order item level
|
|||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And default tax zone is "US"
|
||||
And the store has "EU VAT" tax rate of 23% for "Clothes" within "US" zone
|
||||
And the store has "US VAT" tax rate of 23% for "Clothes" within "US" zone
|
||||
And the store has "Low VAT" tax rate of 10% for "Mugs" within "US" zone
|
||||
And the store has a product "PHP T-Shirt" priced at "$10.10"
|
||||
And it belongs to "Clothes" tax category
|
||||
|
|
|
|||
|
|
@ -5,33 +5,33 @@ Feature: Adding a new tax rate
|
|||
I want to add a new tax rate to the registry
|
||||
|
||||
Background:
|
||||
Given there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store has a tax category "Food and Beverage"
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui
|
||||
Scenario: Adding a new tax rate
|
||||
Given I want to create a new tax rate
|
||||
When I specify its code as "EUROPEAN_UNION_SALES_TAX"
|
||||
And I name it "European Union Sales Tax"
|
||||
And I define it for the "European Union" zone
|
||||
When I specify its code as "US_SALES_TAX"
|
||||
And I name it "United States Sales Tax"
|
||||
And I define it for the "United States" zone
|
||||
And I make it applicable for the "Food and Beverage" tax category
|
||||
And I specify its amount as 20%
|
||||
And I choose the default tax calculator
|
||||
And I add it
|
||||
Then I should be notified that it has been successfully created
|
||||
And the tax rate "European Union Sales Tax" should appear in the registry
|
||||
And the tax rate "United States Sales Tax" should appear in the registry
|
||||
|
||||
@ui @javascript
|
||||
Scenario: Adding a new tax rate which will be included in product price
|
||||
Given I want to create a new tax rate
|
||||
When I specify its code as "EUROPEAN_UNION_SALES_TAX"
|
||||
And I name it "European Union Sales Tax"
|
||||
And I define it for the "European Union" zone
|
||||
When I specify its code as "US_SALES_TAX"
|
||||
And I name it "United States Sales Tax"
|
||||
And I define it for the "United States" zone
|
||||
And I make it applicable for the "Food and Beverage" tax category
|
||||
And I specify its amount as 20%
|
||||
And I choose the default tax calculator
|
||||
And I choose "Included in price" option
|
||||
And I add it
|
||||
Then I should be notified that it has been successfully created
|
||||
And the tax rate "European Union Sales Tax" should appear in the registry
|
||||
And the tax rate "United States Sales Tax" should appear in the registry
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@ Feature: Deleting a tax rate
|
|||
I want to be able to delete a tax rate
|
||||
|
||||
Background:
|
||||
Given there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store has a tax category "Sports gear"
|
||||
And the store has "European Union Sales Tax" tax rate of 20% for "Sports gear" within "EU" zone
|
||||
And the store has "United States Sales Tax" tax rate of 20% for "Sports gear" within "US" zone
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui
|
||||
Scenario: Deleted tax rate should disappear from the registry
|
||||
When I delete tax rate "European Union Sales Tax"
|
||||
When I delete tax rate "United States Sales Tax"
|
||||
Then I should be notified that it has been successfully deleted
|
||||
Then this tax rate should no longer exist in the registry
|
||||
|
|
|
|||
|
|
@ -5,35 +5,35 @@ Feature: Editing tax rate
|
|||
I want to be able to edit a tax rate
|
||||
|
||||
Background:
|
||||
Given there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store has a tax category "Sports gear"
|
||||
And the store has "European Union Sales Tax" tax rate of 20% for "Sports gear" within "EU" zone
|
||||
And the store has "United States Sales Tax" tax rate of 20% for "Sports gear" within "US" zone
|
||||
And I am logged in as an administrator
|
||||
|
||||
@todo
|
||||
Scenario: Trying to change tax rate code
|
||||
Given I want to modify a tax rate "European Union Sales Tax"
|
||||
When I change its code to "eu_vat"
|
||||
Given I want to modify a tax rate "United States Sales Tax"
|
||||
When I change its code to "us_vat"
|
||||
And I save my changes
|
||||
Then I should be notified that code cannot be changed
|
||||
And tax rate "European Union Sales Tax" should still have code "european_union_sales_tax"
|
||||
And tax rate "United States Sales Tax" should still have code "united_states_sales_tax"
|
||||
|
||||
@ui
|
||||
Scenario: Seeing disabled code field when editing tax rate
|
||||
When I want to modify a tax rate "European Union Sales Tax"
|
||||
When I want to modify a tax rate "United States Sales Tax"
|
||||
Then the code field should be disabled
|
||||
|
||||
@ui
|
||||
Scenario: Renaming the tax rate
|
||||
Given I want to modify a tax rate "European Union Sales Tax"
|
||||
When I rename it to "EU VAT"
|
||||
Given I want to modify a tax rate "United States Sales Tax"
|
||||
When I rename it to "US VAT"
|
||||
And I save my changes
|
||||
Then I should be notified that it has been successfully edited
|
||||
And this tax rate name should be "EU VAT"
|
||||
And this tax rate name should be "US VAT"
|
||||
|
||||
@ui
|
||||
Scenario: Changing the tax rate amount
|
||||
Given I want to modify a tax rate "European Union Sales Tax"
|
||||
Given I want to modify a tax rate "United States Sales Tax"
|
||||
When I specify its amount as 16%
|
||||
And I save my changes
|
||||
Then I should be notified that it has been successfully edited
|
||||
|
|
@ -42,7 +42,7 @@ Feature: Editing tax rate
|
|||
@ui
|
||||
Scenario: Changing related tax category
|
||||
Given the store has a tax category "Food and Beverage" also
|
||||
And I want to modify a tax rate "European Union Sales Tax"
|
||||
And I want to modify a tax rate "United States Sales Tax"
|
||||
When I change it to be applicable for the "Food and Beverage" tax category
|
||||
And I save my changes
|
||||
Then I should be notified that it has been successfully edited
|
||||
|
|
@ -51,7 +51,7 @@ Feature: Editing tax rate
|
|||
@ui
|
||||
Scenario: Changing related zone
|
||||
Given there is a zone "The Rest of the World" containing all other countries
|
||||
And I want to modify a tax rate "European Union Sales Tax"
|
||||
And I want to modify a tax rate "United States Sales Tax"
|
||||
When I change its zone to "The Rest of the World"
|
||||
And I save my changes
|
||||
Then I should be notified that it has been successfully edited
|
||||
|
|
|
|||
|
|
@ -5,20 +5,20 @@ Feature: Tax rate unique code validation
|
|||
I want to be prevented from adding two tax rates with same code
|
||||
|
||||
Background:
|
||||
Given there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store has a tax category "Sports gear"
|
||||
And the store has "European Union Sales Tax" tax rate of 20% for "Sports gear" within "EU" zone identified by "EUROPEAN_UNION_SALES_TAX" code
|
||||
And the store has "United States Sales Tax" tax rate of 20% for "Sports gear" within "US" zone identified by "UNITED_STATES_SALES_TAX" code
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui
|
||||
Scenario: Trying to add tax rate with taken code
|
||||
Given I want to create a new tax rate
|
||||
When I specify its code as "EUROPEAN_UNION_SALES_TAX"
|
||||
And I name it "European Union Sales Tax"
|
||||
And I define it for the "European Union" zone
|
||||
When I specify its code as "UNITED_STATES_SALES_TAX"
|
||||
And I name it "United States Sales Tax"
|
||||
And I define it for the "United States" zone
|
||||
And I make it applicable for the "Sports gear" tax category
|
||||
And I specify its amount as 20%
|
||||
And I choose the default tax calculator
|
||||
And I try to add it
|
||||
Then I should be notified that tax rate with this code already exists
|
||||
And there should still be only one tax rate with code "EUROPEAN_UNION_SALES_TAX"
|
||||
And there should still be only one tax rate with code "UNITED_STATES_SALES_TAX"
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ Feature: Tax rate validation
|
|||
I want to be prevented from adding it without specifying required fields
|
||||
|
||||
Background:
|
||||
Given there is a zone "EU" containing all members of the European Union
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store has a tax category "Food and Beverage"
|
||||
Given I am logged in as an administrator
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui
|
||||
Scenario: Trying to add a new tax rate without specifying its code
|
||||
|
|
@ -30,11 +30,11 @@ Feature: Tax rate validation
|
|||
@ui
|
||||
Scenario: Trying to add a new tax rate without specifying its name
|
||||
Given I want to create a new tax rate
|
||||
When I specify its code as "EUROPEAN_UNION_SALES_TAX"
|
||||
When I specify its code as "UNITED_STATES_SALES_TAX"
|
||||
But I do not name it
|
||||
And I try to add it
|
||||
Then I should be notified that name is required
|
||||
And tax rate with code "EUROPEAN_UNION_SALES_TAX" should not be added
|
||||
And tax rate with code "UNITED_STATES_SALES_TAX" should not be added
|
||||
|
||||
@ui
|
||||
Scenario: Trying to add a new tax rate without specifying its zone
|
||||
|
|
@ -58,7 +58,7 @@ Feature: Tax rate validation
|
|||
|
||||
@ui
|
||||
Scenario: Trying to remove amount from existing tax rate
|
||||
Given the store has "European Union Sales Tax" tax rate of 20% for "Sports gear" within "EU" zone
|
||||
Given the store has "United States Sales Tax" tax rate of 20% for "Sports gear" within "US" zone
|
||||
And I want to modify this tax rate
|
||||
When I remove its amount
|
||||
And I try to save my changes
|
||||
|
|
@ -67,9 +67,9 @@ Feature: Tax rate validation
|
|||
|
||||
@ui
|
||||
Scenario: Trying to remove name from existing tax rate
|
||||
Given the store has "European Union Sales Tax" tax rate of 20% for "Sports gear" within "EU" zone
|
||||
Given the store has "United States Sales Tax" tax rate of 20% for "Sports gear" within "US" zone
|
||||
And I want to modify this tax rate
|
||||
When I remove its name
|
||||
And I try to save my changes
|
||||
Then I should be notified that name is required
|
||||
And this tax rate should still be named "European Union Sales Tax"
|
||||
And this tax rate should still be named "United States Sales Tax"
|
||||
|
|
|
|||
|
|
@ -30,15 +30,6 @@ use Symfony\Component\Intl\Intl;
|
|||
*/
|
||||
final class ZoneContext implements Context
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $euMembers = [
|
||||
'BE', 'BG', 'CZ', 'DK', 'DE', 'EE', 'IE', 'GR', 'ES',
|
||||
'FR', 'IT', 'CY', 'LV', 'LT', 'LU', 'HU', 'MT', 'NL',
|
||||
'AT', 'PL', 'PT', 'RO', 'SI', 'SK', 'FI', 'SE', 'GB',
|
||||
];
|
||||
|
||||
/**
|
||||
* @var SharedStorageInterface
|
||||
*/
|
||||
|
|
@ -85,31 +76,15 @@ final class ZoneContext implements Context
|
|||
$this->zoneMemberFactory = $zoneMemberFactory;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given /^there is a zone "EU" containing all members of the European Union$/
|
||||
*/
|
||||
public function thereIsAZoneEUContainingAllMembersOfEuropeanUnion()
|
||||
{
|
||||
$zone = $this->zoneFactory->createWithMembers($this->euMembers);
|
||||
$zone->setType(ZoneInterface::TYPE_COUNTRY);
|
||||
$zone->setCode('EU');
|
||||
$zone->setName('European Union');
|
||||
|
||||
$this->zoneRepository->add($zone);
|
||||
$this->sharedStorage->set('zone', $zone);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given /^there is a zone "The Rest of the World" containing all other countries$/
|
||||
*/
|
||||
public function thereIsAZoneTheRestOfTheWorldContainingAllOtherCountries()
|
||||
{
|
||||
$restOfWorldCountries = array_diff(
|
||||
array_keys(Intl::getRegionBundle()->getCountryNames('en')),
|
||||
$this->euMembers
|
||||
);
|
||||
$restOfWorldCountries = Intl::getRegionBundle()->getCountryNames('en');
|
||||
unset($restOfWorldCountries['US']);
|
||||
|
||||
$zone = $this->zoneFactory->createWithMembers($restOfWorldCountries);
|
||||
$zone = $this->zoneFactory->createWithMembers(array_keys($restOfWorldCountries));
|
||||
$zone->setType(ZoneInterface::TYPE_COUNTRY);
|
||||
$zone->setCode('RoW');
|
||||
$zone->setName('The Rest of the World');
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ default:
|
|||
- sylius.behat.context.transform.tax_rate
|
||||
- sylius.behat.context.transform.zone
|
||||
|
||||
- sylius.behat.context.setup.channel
|
||||
- sylius.behat.context.setup.admin_security
|
||||
- sylius.behat.context.setup.taxation
|
||||
- sylius.behat.context.setup.zone
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ final class DefaultUnitedStatesChannelFactory implements DefaultChannelFactoryIn
|
|||
const DEFAULT_COUNTRY_CODE = 'US';
|
||||
const DEFAULT_ZONE_CODE = 'US';
|
||||
const DEFAULT_ZONE_NAME = 'United States';
|
||||
const DEFAULT_CHANNEL_NAME = 'United States';
|
||||
|
||||
/**
|
||||
* @var RepositoryInterface
|
||||
|
|
@ -157,7 +158,7 @@ final class DefaultUnitedStatesChannelFactory implements DefaultChannelFactoryIn
|
|||
$currency = $this->provideCurrency();
|
||||
$locale = $this->provideLocale();
|
||||
|
||||
$channel = $this->createChannel($code ?: self::DEFAULT_CHANNEL_CODE, $name ?: self::DEFAULT_ZONE_NAME);
|
||||
$channel = $this->createChannel($code ?: self::DEFAULT_CHANNEL_CODE, $name ?: self::DEFAULT_CHANNEL_NAME);
|
||||
$channel->addCurrency($currency);
|
||||
$channel->setDefaultCurrency($currency);
|
||||
$channel->addLocale($locale);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue