Skip to content

Commit 1442d33

Browse files
author
Cari Spruiell
committed
MAGETWO-36276: Create /mine API for CartTotalRepository
- update test to mark as REST only and remove cartId from request data
1 parent 57247e2 commit 1442d33

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ protected function getQuoteItemTotalsData(\Magento\Quote\Model\Quote $quote)
177177
*/
178178
public function testGetMyTotals()
179179
{
180+
$this->_markTestAsRestOnly();
181+
180182
// get customer ID token
181183
/** @var \Magento\Integration\Service\V1\CustomerTokenServiceInterface $customerTokenService */
182184
$customerTokenService = $this->objectManager->create(
@@ -190,12 +192,6 @@ public function testGetMyTotals()
190192
$cartId = $quote->getId();
191193

192194
$serviceInfo = [
193-
'soap' => [
194-
'service' => 'quoteCartTotalRepositoryV1',
195-
'serviceVersion' => 'V1',
196-
'operation' => 'quoteCartTotalRepositoryV1get',
197-
'token' => $token
198-
],
199195
'rest' => [
200196
'resourcePath' => '/V1/carts/mine/totals',
201197
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_GET,
@@ -232,10 +228,8 @@ public function testGetMyTotals()
232228
Totals::KEY_ITEMS => [$this->getQuoteItemTotalsData($quote)],
233229
];
234230

235-
$requestData = ['cartId' => $cartId];
236-
237231
$data = $this->formatTotalsData($data);
238232

239-
$this->assertEquals($data, $this->_webApiCall($serviceInfo, $requestData));
233+
$this->assertEquals($data, $this->_webApiCall($serviceInfo));
240234
}
241235
}

0 commit comments

Comments
 (0)