Skip to content

Commit c120129

Browse files
author
Prabhu Ram
committed
MC-19254: Implement the schema changes
- unit and static test fix
1 parent 4345be2 commit c120129

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/code/Magento/SalesRule/Test/Unit/Model/RulesApplierTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ protected function getPreparedItem()
207207
\Magento\Framework\Api\ExtensionAttributesInterface::class
208208
)->setMethods(['setDiscounts', 'getDiscounts'])->getMock();
209209
$itemExtension->method('getDiscounts')->willReturn([]);
210-
$itemExtension->expects($this->once())
210+
$itemExtension->expects($this->any())
211211
->method('setDiscounts')
212212
->willReturn([]);
213213
$quote = $this->createPartialMock(\Magento\Quote\Model\Quote::class, ['getStore', '__wakeUp']);

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/CartPromotionsTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,7 @@ public function testCartPromotionsWhenNoDiscountIsAvailable()
347347
/** @var ProductRepositoryInterface $productRepository */
348348
$productRepository = $objectManager->get(ProductRepositoryInterface::class);
349349
/** @var Product $prod2 */
350-
$prod1 = $productRepository->get('simple1');
351350
$prod2 = $productRepository->get('simple2');
352-
$productsInCart = [$prod1, $prod2];
353351
$prod2->setVisibility(Visibility::VISIBILITY_BOTH);
354352
$productRepository->save($prod2);
355353
$skus =['simple1', 'simple2'];

0 commit comments

Comments
 (0)