Skip to content

Commit 8d5f5c5

Browse files
committed
MC-38620: Merge release branch into 2.4-develop
fix tests after merge
1 parent 72138f8 commit 8d5f5c5

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

app/code/Magento/Quote/Test/Unit/Observer/Frontend/Quote/Address/CollectTotalsObserverTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,6 @@ public function testDispatchWithDefaultCustomerGroupId()
271271
->method('getCustomerGroupId')
272272
->willReturn('customerGroupId');
273273
$this->customerMock->expects($this->exactly(2))->method('getId')->willReturn('1');
274-
$this->groupManagementMock->expects($this->once())
275-
->method('getDefaultGroup')
276-
->willReturn($this->groupInterfaceMock);
277-
$this->groupInterfaceMock->expects($this->once())
278-
->method('getId')->willReturn('defaultCustomerGroupId');
279274
/** Assertions */
280275
$this->quoteAddressMock->expects($this->once())
281276
->method('setPrevQuoteCustomerGroupId')

dev/tests/api-functional/testsuite/Magento/GraphQl/Wishlist/AddDownloadableProductToWishlistTest.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -120,29 +120,6 @@ public function testAddDownloadableProductWithOptions(): void
120120
$this->assertEquals('Downloadable Product Sample', $wishlistItemSamples[0]['title']);
121121
}
122122

123-
/**
124-
* @magentoConfigFixture default_store wishlist/general/active 0
125-
* @magentoApiDataFixture Magento/Customer/_files/customer.php
126-
* @magentoApiDataFixture Magento/Downloadable/_files/product_downloadable_with_custom_options.php
127-
*/
128-
public function testAddDownloadableProductOnDisabledWishlist(): void
129-
{
130-
$qty = 2;
131-
$sku = 'downloadable-product-with-purchased-separately-links';
132-
$links = $this->getProductsLinks($sku);
133-
$linkId = key($links);
134-
$itemOptions = $this->getCustomOptionsWithIDV2ForQueryBySku->execute($sku);
135-
$itemOptions['selected_options'][] = $this->generateProductLinkSelectedOptions($linkId);
136-
$productOptionsQuery = trim(preg_replace(
137-
'/"([^"]+)"\s*:\s*/',
138-
'$1:',
139-
json_encode($itemOptions)
140-
), '{}');
141-
$query = $this->getQuery($qty, $sku, $productOptionsQuery);
142-
$this->expectExceptionMessage('The wishlist configuration is currently disabled.');
143-
$this->graphQlMutation($query, [], '', $this->getHeaderMap());
144-
}
145-
146123
/**
147124
* Function returns array of all product's links
148125
*

0 commit comments

Comments
 (0)