Skip to content

Commit 4a3a30a

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

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

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

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ public function testSetAddress()
138138
*/
139139
public function testGetMyAddress()
140140
{
141+
$this->_markTestAsRestOnly();
142+
141143
// get customer ID token
142144
/** @var \Magento\Integration\Service\V1\CustomerTokenServiceInterface $customerTokenService */
143145
$customerTokenService = $this->objectManager->create(
@@ -176,23 +178,18 @@ public function testGetMyAddress()
176178
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_GET,
177179
'token' => $token
178180
],
179-
'soap' => [
180-
'service' => self::SERVICE_NAME,
181-
'serviceVersion' => self::SERVICE_VERSION,
182-
'operation' => self::SERVICE_NAME . 'Get',
183-
'token' => $token
184-
],
185181
];
186182

187-
$requestData = ["cartId" => $cartId];
188-
$this->assertEquals($data, $this->_webApiCall($serviceInfo, $requestData));
183+
$this->assertEquals($data, $this->_webApiCall($serviceInfo));
189184
}
190185

191186
/**
192187
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php
193188
*/
194189
public function testSetMyAddress()
195190
{
191+
$this->_markTestAsRestOnly();
192+
196193
// get customer ID token
197194
/** @var \Magento\Integration\Service\V1\CustomerTokenServiceInterface $customerTokenService */
198195
$customerTokenService = $this->objectManager->create(
@@ -210,12 +207,6 @@ public function testSetMyAddress()
210207
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_POST,
211208
'token' => $token
212209
],
213-
'soap' => [
214-
'service' => self::SERVICE_NAME,
215-
'serviceVersion' => self::SERVICE_VERSION,
216-
'operation' => self::SERVICE_NAME . 'Assign',
217-
'token' => $token
218-
],
219210
];
220211

221212
$addressData = [
@@ -234,7 +225,6 @@ public function testSetMyAddress()
234225
'fax' => '44332255',
235226
];
236227
$requestData = [
237-
"cartId" => $quote->getId(),
238228
'address' => $addressData,
239229
];
240230

0 commit comments

Comments
 (0)