Skip to content

Commit 994d4c2

Browse files
committed
Merge remote-tracking branch 'origin/MC-33071-CE-10' into MC-33071
2 parents b2f5a66 + 19cda73 commit 994d4c2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/ConfigurableProduct/ConfigurableProductStockStatusTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public function testConfigurableProductShowOutOfStock()
4242
$this->stockRegistry->updateStockItemBySku($childSkuOutOfStock, $stockItem);
4343
$query = $this->getQuery($parentSku);
4444
$response = $this->graphQlQuery($query);
45-
$this->assertArraySubset(
46-
[['product' => ['sku' => $childSkuOutOfStock, 'stock_status' => 'OUT_OF_STOCK']]],
45+
$this->assertContainsEquals(
46+
['product' => ['sku' => $childSkuOutOfStock, 'stock_status' => 'OUT_OF_STOCK']],
4747
$response['products']['items'][0]['variants']
4848
);
4949
}

dev/tests/api-functional/testsuite/Magento/GraphQl/DownloadableProduct/DownloadableProductViewTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ public function testQueryAllFieldsDownloadableProductsWithDownloadableFileAndSam
3333
{
3434
items{
3535
id
36-
attribute_set_id
36+
attribute_set_id
3737
created_at
3838
name
3939
sku
40-
type_id
40+
type_id
4141
updated_at
4242
price{
4343
regularPrice{
@@ -50,16 +50,16 @@ public function testQueryAllFieldsDownloadableProductsWithDownloadableFileAndSam
5050
description
5151
}
5252
}
53-
}
53+
}
5454
... on DownloadableProduct {
5555
links_title
5656
links_purchased_separately
57-
57+
5858
downloadable_product_links{
5959
sample_url
6060
sort_order
6161
title
62-
price
62+
price
6363
}
6464
downloadable_product_samples{
6565
title
@@ -203,7 +203,7 @@ private function assertDownloadableProductLinks($product, $actualResponse)
203203
/** @var LinkInterface $downloadableProductLinks */
204204
$downloadableProductLinks = $product->getExtensionAttributes()->getDownloadableProductLinks();
205205
$downloadableProductLink = $downloadableProductLinks[1];
206-
$this->assertNotEmpty('sample_url', $actualResponse['downloadable_product_links'][1]);
206+
$this->assertNotEmpty($actualResponse['downloadable_product_links'][1]['sample_url']);
207207
$this->assertResponseFields(
208208
$actualResponse['downloadable_product_links'][1],
209209
[
@@ -227,7 +227,7 @@ private function assertDownloadableProductSamples($product, $actualResponse)
227227
/** @var SampleInterface $downloadableProductSamples */
228228
$downloadableProductSamples = $product->getExtensionAttributes()->getDownloadableProductSamples();
229229
$downloadableProductSample = $downloadableProductSamples[0];
230-
$this->assertNotEmpty('sample_url', $actualResponse['downloadable_product_samples'][0]);
230+
$this->assertNotEmpty($actualResponse['downloadable_product_samples'][0]['sample_url']);
231231
$this->assertResponseFields(
232232
$actualResponse['downloadable_product_samples'][0],
233233
[

0 commit comments

Comments
 (0)