Skip to content

Commit 8a6f5a6

Browse files
committed
Merge remote-tracking branch 'trigger/MAGETWO-96318' into MAGETWO-95892
2 parents 18b162d + 0d3d631 commit 8a6f5a6

File tree

4 files changed

+0
-148
lines changed

4 files changed

+0
-148
lines changed

app/code/Magento/CatalogUrlRewrite/Model/WebapiProductUrlPathGenerator.php

Lines changed: 0 additions & 72 deletions
This file was deleted.

app/code/Magento/CatalogUrlRewrite/etc/webapi_rest/di.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/code/Magento/CatalogUrlRewrite/etc/webapi_soap/di.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

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

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -159,62 +159,6 @@ private function loadWebsiteByCode($websiteCode)
159159
return $website;
160160
}
161161

162-
/**
163-
* Test for check that 2 same product create and url_key save.
164-
*
165-
* @return void
166-
*/
167-
public function testSaveTwoSameProduct()
168-
{
169-
$serviceInfo = [
170-
'rest' => [
171-
'resourcePath' => self::RESOURCE_PATH,
172-
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_POST,
173-
],
174-
'soap' => [
175-
'service' => self::SERVICE_NAME,
176-
'serviceVersion' => self::SERVICE_VERSION,
177-
'operation' => self::SERVICE_NAME . 'Save',
178-
],
179-
];
180-
181-
$product1 = [
182-
'product' => [
183-
'attribute_set_id' => 4,
184-
'name' => "Test API 1",
185-
'price' => 254.13,
186-
'sku' => '1234'
187-
]
188-
];
189-
$product2 = [
190-
'product' => [
191-
'attribute_set_id' => 4,
192-
'name' => "Test API 1",
193-
'price' => 254.13,
194-
'sku' => '1235'
195-
]
196-
];
197-
198-
$product1 = $this->_webApiCall($serviceInfo, $product1);
199-
$response = $this->_webApiCall($serviceInfo, $product2);
200-
201-
$index = null;
202-
foreach ($response['custom_attributes'] as $key => $customAttribute) {
203-
if ($customAttribute['attribute_code'] == 'url_key') {
204-
$index = $key;
205-
break;
206-
}
207-
}
208-
209-
$this->assertArrayHasKey(ProductInterface::SKU, $response);
210-
211-
$expectedResult = $product1['custom_attributes'][$index]['value'] . '-1';
212-
$this->assertEquals($expectedResult, $response['custom_attributes'][$index]['value']);
213-
214-
$this->deleteProduct('1234');
215-
$this->deleteProduct('1235');
216-
}
217-
218162
/**
219163
* Test removing association between product and website 1
220164
* @magentoApiDataFixture Magento/Catalog/_files/product_with_two_websites.php

0 commit comments

Comments
 (0)