Skip to content

Commit 1989c77

Browse files
author
Onischenko, Yaroslav(yonischenko)
committed
Merge pull request magento#4 from magento-nord/develop
[Sample Data] [Nord] Bug fixing
2 parents b8fa483 + e8ad841 commit 1989c77

File tree

6 files changed

+1200
-1199
lines changed

6 files changed

+1200
-1199
lines changed

app/code/Magento/ConfigurableSampleData/Setup/Installer.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2015 Magento. All rights reserved.
3+
* Copyright 2015 Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\ConfigurableSampleData\Setup;
@@ -29,6 +29,11 @@ class Installer implements Setup\SampleData\InstallerInterface
2929
*/
3030
protected $productLinkSetup;
3131

32+
/**
33+
* @var \Magento\SalesSampleData\Model\Order
34+
*/
35+
protected $order;
36+
3237
/**
3338
* @param \Magento\CatalogSampleData\Model\Attribute $attribute
3439
* @param \Magento\CatalogSampleData\Model\Category $category
@@ -39,12 +44,14 @@ public function __construct(
3944
\Magento\CatalogSampleData\Model\Attribute $attribute,
4045
\Magento\CatalogSampleData\Model\Category $category,
4146
\Magento\ConfigurableSampleData\Model\Product $configurableProduct,
42-
\Magento\ProductLinksSampleData\Model\ProductLink $productLinkSetup
47+
\Magento\ProductLinksSampleData\Model\ProductLink $productLinkSetup,
48+
\Magento\SalesSampleData\Model\Order $order
4349
) {
4450
$this->attribute = $attribute;
4551
$this->category = $category;
4652
$this->configurableProduct = $configurableProduct;
4753
$this->productLinkSetup = $productLinkSetup;
54+
$this->order = $order;
4855
}
4956

5057
/**
@@ -60,5 +67,6 @@ public function install()
6067
['Magento_ConfigurableSampleData::fixtures/Links/upsell.csv'],
6168
['Magento_ConfigurableSampleData::fixtures/Links/crossell.csv']
6269
);
70+
$this->order->install(['Magento_ConfigurableSampleData::fixtures/orders.csv']);
6371
}
64-
}
72+
}

app/code/Magento/ConfigurableSampleData/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"php": "~5.5.0|~5.6.0|~7.0.0",
66
"magento/module-configurable-product": "1.0.0-beta",
77
"magento/module-sample-data": "1.0.0-beta",
8-
"magento/module-product-links-sample-data": "1.0.0-beta"
8+
"magento/module-product-links-sample-data": "1.0.0-beta",
9+
"magento/module-sales-sample-data": "1.0.0-beta"
910
},
1011
"type": "magento2-module",
1112
"version": "1.0.0-beta",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
customer_email,currency,shipping_method,payment,product,refund,increment_id
2-
"[email protected]",USD,"flatrate_flatrate",checkmo,"a:3:{s:3:""sku"";s:4:""WS03"";s:3:""qty"";s:1:""1"";s:20:""configurable_options"";a:2:{s:12:""size_general"";s:2:""XS"";s:5:""color"";s:3:""Red"";}}",no,000000001
3-
"[email protected]",USD,"flatrate_flatrate",checkmo,"a:3:{s:3:""sku"";s:4:""WS08"";s:3:""qty"";s:1:""1"";s:20:""configurable_options"";a:2:{s:12:""size_general"";s:2:""XS"";s:5:""color"";s:4:""Blue"";}}",yes,000000002
1+
customer_email,currency,shipping_method,payment,product,refund
2+
"[email protected]",USD,"flatrate_flatrate",checkmo,"a:3:{s:3:""sku"";s:4:""WS03"";s:3:""qty"";s:1:""1"";s:20:""configurable_options"";a:2:{s:4:""size"";s:2:""XS"";s:5:""color"";s:3:""Red"";}}",no
3+
"[email protected]",USD,"flatrate_flatrate",checkmo,"a:3:{s:3:""sku"";s:4:""WS08"";s:3:""qty"";s:1:""1"";s:20:""configurable_options"";a:2:{s:4:""size"";s:2:""XS"";s:5:""color"";s:4:""Blue"";}}",yes

0 commit comments

Comments
 (0)