Skip to content

Commit 034a313

Browse files
committed
Add version 2.1.1
1 parent f5c5e5f commit 034a313

File tree

61 files changed

+3866
-2280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+3866
-2280
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2.1.1
2+
=============
3+
To get detailed information about changes in Magento 2.1.1, please visit [Magento Community Edition (CE) Release Notes](http://devdocs.magento.com/guides/v2.1/release-notes/ReleaseNotes2.1.1CE.html "Magento Community Edition (CE) Release Notes")
4+
15
2.1.0
26
=============
37
To get detailed information about changes in Magento 2.1.0, please visit [Magento Community Edition (CE) Release Notes](http://devdocs.magento.com/guides/v2.1/release-notes/ReleaseNotes2.1.0CE.html "Magento Community Edition (CE) Release Notes")

app/etc/di.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<preference for="Magento\Framework\Api\Search\SearchCriteriaInterface" type="Magento\Framework\Api\Search\SearchCriteria"/>
3838
<preference for="Magento\Framework\Api\Search\DocumentInterface" type="Magento\Framework\Api\Search\Document" />
3939
<preference for="Magento\Framework\Api\Search\AggregationInterface" type="Magento\Framework\Search\Response\Aggregation" />
40+
<preference for="Magento\Framework\App\RequestSafetyInterface" type="Magento\Framework\App\Request\Http" />
4041
<type name="Magento\Store\Model\Store">
4142
<arguments>
4243
<argument name="currencyInstalled" xsi:type="string">system/currency/installed</argument>
@@ -1192,6 +1193,7 @@
11921193
<arguments>
11931194
<argument name="cacheList" xsi:type="array">
11941195
<item name="block_html" xsi:type="const">Magento\Framework\App\Cache\Type\Block::TYPE_IDENTIFIER</item>
1196+
<item name="collections" xsi:type="const">Magento\Framework\App\Cache\Type\Collection::TYPE_IDENTIFIER</item>
11951197
</argument>
11961198
</arguments>
11971199
</type>

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"name": "magento/project-community-edition",
33
"description": "eCommerce Platform for Growth (Community Edition)",
44
"type": "project",
5-
"version": "2.1.0",
5+
"version": "2.1.1",
66
"license": [
77
"OSL-3.0",
88
"AFL-3.0"
99
],
1010
"require": {
11-
"magento/product-community-edition": "2.1.0",
11+
"magento/product-community-edition": "2.1.1",
1212
"composer/composer": "@alpha"
1313
},
1414
"require-dev": {

composer.lock

Lines changed: 179 additions & 172 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/CreditmemoGetTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,10 @@ public function testCreditmemoGet()
105105
$this->assertArrayHasKey($field, $actual);
106106
$this->assertEquals($expected[$field], $actual[$field]);
107107
}
108+
109+
//check that nullable fields were marked as optional and were not sent
110+
foreach ($actual as $value) {
111+
$this->assertNotNull($value);
112+
}
108113
}
109114
}

dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/InvoiceGetTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,10 @@ public function testInvoiceGet()
4848
$this->assertArrayHasKey($field, $result);
4949
$this->assertEquals($value, $result[$field]);
5050
}
51+
52+
//check that nullable fields were marked as optional and were not sent
53+
foreach ($result as $value) {
54+
$this->assertNotNull($value);
55+
}
5156
}
5257
}

dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/OrderGetTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,10 @@ public function testOrderGet()
8181
foreach ($expectedBillingAddressNotEmpty as $field) {
8282
$this->assertArrayHasKey($field, $result['billing_address']);
8383
}
84+
85+
//check that nullable fields were marked as optional and were not sent
86+
foreach ($result as $value) {
87+
$this->assertNotNull($value);
88+
}
8489
}
8590
}

dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/OrderItemGetTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ public function testGet()
5353

5454
$this->assertTrue(is_array($response));
5555
$this->assertOrderItem($orderItem, $response);
56+
57+
//check that nullable fields were marked as optional and were not sent
58+
foreach ($response as $fieldName => $value) {
59+
if ($fieldName == 'sku') {
60+
continue;
61+
}
62+
$this->assertNotNull($value);
63+
}
5664
}
5765

5866
/**

dev/tests/functional/tests/app/Magento/Catalog/Test/TestStep/CreateProductsStep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __construct(FixtureFactory $fixtureFactory, $products, array $da
6060
public function run()
6161
{
6262
$products = [];
63-
$productsDataSets = explode(',', $this->products);
63+
$productsDataSets = is_array($this->products) ? $this->products : explode(',', $this->products);
6464
foreach ($productsDataSets as $key => $productDataSet) {
6565
$productDataSet = explode('::', $productDataSet);
6666
$fixtureClass = $productDataSet[0];

dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Fixture/ConfigurableProduct/ConfigurableAttributesData.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ protected function prepareVariationsMatrix(array $data)
305305
$row
306306
);
307307
}
308-
309308
}
310309
}
311310

0 commit comments

Comments
 (0)