Skip to content

Commit 14505dc

Browse files
author
Stanislav Idolov
committed
MAGETWO-32134: Build stabilization
1 parent e3788be commit 14505dc

File tree

13 files changed

+45
-38
lines changed

13 files changed

+45
-38
lines changed

dev/tests/api-functional/_files/Magento/TestModule4/Service/V1/Entity/ExtensibleRequest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
*/
55
namespace Magento\TestModule4\Service\V1\Entity;
66

7-
class ExtensibleRequest extends \Magento\Framework\Model\AbstractExtensibleModel
8-
implements ExtensibleRequestInterface
7+
class ExtensibleRequest extends \Magento\Framework\Model\AbstractExtensibleModel implements ExtensibleRequestInterface
98
{
109
public function getName()
1110
{

dev/tests/api-functional/_files/Magento/TestModuleMSC/Model/Data/CustomAttributeDataObject.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
use Magento\TestModuleMSC\Api\Data\CustomAttributeDataObjectInterface;
88

9-
class CustomAttributeDataObject extends \Magento\Framework\Api\AbstractExtensibleObject
10-
implements CustomAttributeDataObjectInterface
9+
class CustomAttributeDataObject extends \Magento\Framework\Api\AbstractExtensibleObject implements
10+
CustomAttributeDataObjectInterface
1111
{
1212
/**
1313
* @return string

dev/tests/api-functional/_files/Magento/TestModuleMSC/Model/Data/CustomAttributeNestedDataObject.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
use Magento\TestModuleMSC\Api\Data\CustomAttributeNestedDataObjectInterface;
88

9-
class CustomAttributeNestedDataObject extends \Magento\Framework\Model\AbstractExtensibleModel
10-
implements CustomAttributeNestedDataObjectInterface
9+
class CustomAttributeNestedDataObject extends \Magento\Framework\Model\AbstractExtensibleModel implements
10+
CustomAttributeNestedDataObjectInterface
1111
{
1212
/**
1313
* @return string

dev/tests/api-functional/_files/Magento/TestModuleMSC/Model/Data/Item.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
use Magento\TestModuleMSC\Api\Data\ItemInterface;
88

9-
class Item extends \Magento\Framework\Model\AbstractExtensibleModel
10-
implements ItemInterface
9+
class Item extends \Magento\Framework\Model\AbstractExtensibleModel implements ItemInterface
1110
{
1211
/**
1312
* @return int

dev/tests/api-functional/testsuite/Magento/Catalog/Api/CategoryManagementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testTree($rootCategoryId, $depth, $expectedLevel, $expectedId)
3636
];
3737
$result = $this->_webApiCall($serviceInfo, $requestData);
3838

39-
for($i = 0; $i < $expectedLevel; $i++) {
39+
for ($i = 0; $i < $expectedLevel; $i++) {
4040
$result = $result['children_data'][0];
4141
}
4242
$this->assertEquals($expectedId, $result['id']);

dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductAttributeManagementTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ public function testUnassignAttribute()
147147
'operation' => self::SERVICE_NAME . 'Unassign',
148148
],
149149
];
150-
$this->assertTrue($this->_webApiCall(
150+
$this->assertTrue(
151+
$this->_webApiCall(
151152
$serviceInfo,
152153
[
153154
'attributeSetId' => $payload['attributeSetId'],

dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductCustomOptionRepositoryTest.php

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ public function testUpdate()
262262
if (TESTS_WEB_API_ADAPTER == self::ADAPTER_SOAP) {
263263
$optionDataPost['option_id'] = $optionId;
264264
$updatedOption = $this->_webApiCall(
265-
$serviceInfo, [ 'id' => $optionId, 'option' => $optionDataPost]
265+
$serviceInfo,
266+
['id' => $optionId, 'option' => $optionDataPost]
266267
);
267268
} else {
268269
$updatedOption = $this->_webApiCall(
@@ -307,13 +308,14 @@ public function testUpdateOptionAddingNewValue($optionType)
307308

308309
$values = [];
309310
foreach ($option->getValues() as $key => $value) {
310-
$values[] = [
311-
'price' => $value->getPrice(),
312-
'price_type' => $value->getPriceType(),
313-
'sku' => $value->getSku(),
314-
'title' => $value->getTitle(),
315-
'sort_order' => $value->getSortOrder(),
316-
];
311+
$values[] =
312+
[
313+
'price' => $value->getPrice(),
314+
'price_type' => $value->getPriceType(),
315+
'sku' => $value->getSku(),
316+
'title' => $value->getTitle(),
317+
'sort_order' => $value->getSortOrder(),
318+
];
317319
}
318320
$values[] = $valueData;
319321
$data = [
@@ -339,12 +341,11 @@ public function testUpdateOptionAddingNewValue($optionType)
339341
if (TESTS_WEB_API_ADAPTER == self::ADAPTER_SOAP) {
340342
$data['option_id'] = $fixtureOption->getId();
341343
$valueObject = $this->_webApiCall(
342-
$serviceInfo, [ 'option_id' => $fixtureOption->getId(), 'option' => $data]
344+
$serviceInfo,
345+
[ 'option_id' => $fixtureOption->getId(), 'option' => $data]
343346
);
344347
} else {
345-
$valueObject = $this->_webApiCall(
346-
$serviceInfo, ['option' => $data]
347-
);
348+
$valueObject = $this->_webApiCall($serviceInfo, ['option' => $data]);
348349
}
349350

350351
$values = end($valueObject['values']);

dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductMediaAttributeManagementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testGetList()
3434
$mediaAttributes = $this->_webApiCall($serviceInfo, $requestData);
3535

3636
$this->assertNotEmpty($mediaAttributes);
37-
$attribute = $this->getAttributeByCode($mediaAttributes, 'funny_image');
37+
$attribute = $this->getAttributeByCode($mediaAttributes, 'funny_image');
3838
$this->assertNotNull($attribute);
3939
$this->assertEquals('Funny image', $attribute['default_frontend_label']);
4040
$this->assertEquals(1, $attribute['is_user_defined']);

dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductTierPriceManagementTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public function testGetList($customerGroupId, $count, $value, $qty)
3535
];
3636

3737
$groupPriceList = $this->_webApiCall(
38-
$serviceInfo,
39-
['productSku' => $productSku, 'customerGroupId' => $customerGroupId]
40-
);
38+
$serviceInfo,
39+
['productSku' => $productSku, 'customerGroupId' => $customerGroupId]
40+
);
4141

4242
$this->assertCount($count, $groupPriceList);
4343
if ($count) {

dev/tests/api-functional/testsuite/Magento/CatalogInventory/Api/StockItemTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function saveStockItemBySkuWithWrongInputDataProvider()
146146
'use_config_max_sale_qty' => 1,
147147
'is_in_stock' => 1,
148148
'low_stock_date' => '',
149-
'notify_stock_qty' => NULL,
149+
'notify_stock_qty' => null,
150150
'use_config_notify_stock_qty' => 1,
151151
'manage_stock' => 0,
152152
'use_config_manage_stock' => 1,
@@ -173,8 +173,8 @@ public function saveStockItemBySkuWithWrongInputDataProvider()
173173
'max_sale_qty' => '0.0000',
174174
'use_config_max_sale_qty' => '1',
175175
'is_in_stock' => '1',
176-
'low_stock_date' => NULL,
177-
'notify_stock_qty' => NULL,
176+
'low_stock_date' => null,
177+
'notify_stock_qty' => null,
178178
'use_config_notify_stock_qty' => '1',
179179
'manage_stock' => '0',
180180
'use_config_manage_stock' => '1',

0 commit comments

Comments
 (0)