Skip to content

Commit

Permalink
Fix unit tests by changing fixtures order
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Oct 20, 2017
1 parent 9717d54 commit 2609a6a
Showing 1 changed file with 57 additions and 57 deletions.
114 changes: 57 additions & 57 deletions tests/DataFixtures/ORM/resources/cart_with_items.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,3 @@
Sylius\Component\Core\Model\Order:
cart_with_items:
channel: "@channel_web"
addItem: ["@sw_mug_item", "@hard_available_mug_item"]
currencyCode: "USD"
localeCode: "en_US"
customer: "@customer_oliver"
state: "cart"

Sylius\Component\Core\Model\OrderItem:
sw_mug_item:
quantity: 2
addUnit: ["@sw_mug_item_unit1", "@sw_mug_item_unit2"]
variant: "@mug_sw"
order: "@cart_with_items"
hard_available_mug_item:
quantity: 1
addUnit: ["@hard_available_mug_item_unit"]
variant: "@hard_available_mug"
order: "@cart_with_items"

Sylius\Component\Core\Model\OrderItemUnit:
sw_mug_item_unit1:
__construct: ["@sw_mug_item"]
sw_mug_item_unit2:
__construct: ["@sw_mug_item"]
hard_available_mug_item_unit:
__construct: ["@hard_available_mug_item"]

Sylius\Component\Core\Model\Channel:
channel_web:
code: "WEB"
name: "Web Channel"
hostname: "localhost"
description: "Lorem ipsum"
baseCurrency: "@currency"
defaultLocale: "@locale"
color: "black"
enabled: true
taxCalculationStrategy: "order_items_based"

Sylius\Component\Currency\Model\Currency:
currency:
code: "USD"

Sylius\Component\Locale\Model\Locale:
locale:
code: "en_US"

Sylius\Component\Core\Model\Customer:
customer_oliver:
firstName: "Oliver"
lastName: "Queen"
email: "oliver.queen@star-city.com"
emailCanonical: "oliver.queen@star-city.com"
birthday: "<(new \\DateTime())>"

Sylius\Component\Core\Model\Product:
mug:
code: "MUG"
Expand Down Expand Up @@ -125,6 +68,63 @@ Sylius\Component\Product\Model\ProductVariantTranslation:
name: "Breaking bad mug"
translatable: "@hard_available_mug"

Sylius\Component\Core\Model\Order:
cart_with_items:
channel: "@channel_web"
addItem: ["@sw_mug_item", "@hard_available_mug_item"]
currencyCode: "USD"
localeCode: "en_US"
customer: "@customer_oliver"
state: "cart"

Sylius\Component\Core\Model\OrderItem:
sw_mug_item:
quantity: 2
addUnit: ["@sw_mug_item_unit1", "@sw_mug_item_unit2"]
variant: "@mug_sw"
order: "@cart_with_items"
hard_available_mug_item:
quantity: 1
addUnit: ["@hard_available_mug_item_unit"]
variant: "@hard_available_mug"
order: "@cart_with_items"

Sylius\Component\Core\Model\OrderItemUnit:
sw_mug_item_unit1:
__construct: ["@sw_mug_item"]
sw_mug_item_unit2:
__construct: ["@sw_mug_item"]
hard_available_mug_item_unit:
__construct: ["@hard_available_mug_item"]

Sylius\Component\Core\Model\Channel:
channel_web:
code: "WEB"
name: "Web Channel"
hostname: "localhost"
description: "Lorem ipsum"
baseCurrency: "@currency"
defaultLocale: "@locale"
color: "black"
enabled: true
taxCalculationStrategy: "order_items_based"

Sylius\Component\Currency\Model\Currency:
currency:
code: "USD"

Sylius\Component\Locale\Model\Locale:
locale:
code: "en_US"

Sylius\Component\Core\Model\Customer:
customer_oliver:
firstName: "Oliver"
lastName: "Queen"
email: "oliver.queen@star-city.com"
emailCanonical: "oliver.queen@star-city.com"
birthday: "<(new \\DateTime())>"

Sylius\Component\Core\Model\ChannelPricing:
sw_mug_web_channel_pricing:
channelCode: "WEB"
Expand Down

0 comments on commit 2609a6a

Please sign in to comment.