Skip to content

Commit 0f1f9f3

Browse files
author
Cari Spruiell
committed
MAGETWO-36273: Create /mine API for ShippingAddressManagement
- update test to mark as REST only and remove cartId from request data
1 parent 1637a22 commit 0f1f9f3

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

dev/tests/api-functional/testsuite/Magento/Quote/Api/ShippingAddressManagementTest.php

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ public function testSetAddressForVirtualQuote()
215215
*/
216216
public function testGetMyAddress()
217217
{
218+
$this->_markTestAsRestOnly();
219+
218220
// get customer ID token
219221
/** @var \Magento\Integration\Service\V1\CustomerTokenServiceInterface $customerTokenService */
220222
$customerTokenService = $this->objectManager->create(
@@ -252,15 +254,9 @@ public function testGetMyAddress()
252254
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_GET,
253255
'token' => $token
254256
],
255-
'soap' => [
256-
'service' => self::SERVICE_NAME,
257-
'serviceVersion' => self::SERVICE_VERSION,
258-
'operation' => self::SERVICE_NAME . 'Get',
259-
'token' => $token
260-
],
261257
];
262258

263-
$requestData = ['cartId' => $quote->getId()];
259+
$requestData = [];
264260
$this->assertEquals($addressData, $this->_webApiCall($serviceInfo, $requestData));
265261
}
266262

@@ -271,6 +267,8 @@ public function testGetMyAddress()
271267
*/
272268
public function testSetMyAddress()
273269
{
270+
$this->_markTestAsRestOnly();
271+
274272
// get customer ID token
275273
/** @var \Magento\Integration\Service\V1\CustomerTokenServiceInterface $customerTokenService */
276274
$customerTokenService = $this->objectManager->create(
@@ -288,12 +286,6 @@ public function testSetMyAddress()
288286
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_POST,
289287
'token' => $token
290288
],
291-
'soap' => [
292-
'service' => self::SERVICE_NAME,
293-
'serviceVersion' => self::SERVICE_VERSION,
294-
'operation' => self::SERVICE_NAME . 'Assign',
295-
'token' => $token
296-
],
297289
];
298290

299291
$addressData = [
@@ -312,7 +304,6 @@ public function testSetMyAddress()
312304
'fax' => '44332255',
313305
];
314306
$requestData = [
315-
"cartId" => $quote->getId(),
316307
'address' => $addressData,
317308
];
318309

0 commit comments

Comments
 (0)