From 2609a6ac64aa27497492d59953b9f25e63c8a97e Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Fri, 20 Oct 2017 09:20:51 +0200 Subject: [PATCH] Fix unit tests by changing fixtures order --- .../ORM/resources/cart_with_items.yml | 114 +++++++++--------- 1 file changed, 57 insertions(+), 57 deletions(-) diff --git a/tests/DataFixtures/ORM/resources/cart_with_items.yml b/tests/DataFixtures/ORM/resources/cart_with_items.yml index 952558a530d7..7713795c37f1 100644 --- a/tests/DataFixtures/ORM/resources/cart_with_items.yml +++ b/tests/DataFixtures/ORM/resources/cart_with_items.yml @@ -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" @@ -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"