Skip to content

Commit 7369379

Browse files
ACQE-8152: Verify Rest-API updating product stock_item does not delete downloadable_product_links
- Updated functions doc block
1 parent 74eeff6 commit 7369379

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

dev/tests/api-functional/testsuite/Magento/Downloadable/Api/StockItemUpdatePreservesLinksTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ protected function setUp(): void
4242
/**
4343
* Test the complete workflow from Steps 1-16
4444
* Verify that REST-API updating product stock_item does not delete downloadable_product_links
45+
*
46+
* @return void
4547
*/
4648
#[DataFixture(DownloadableProduct::class, [
4749
'sku' => 'downloadable-product',
@@ -105,6 +107,9 @@ public function testStockItemUpdatePreservesDownloadableLinks()
105107

106108
/**
107109
* Update Product Stock Item
110+
*
111+
* @param string $productSku
112+
* @return array
108113
*/
109114
private function updateProductStockItem(string $productSku): array
110115
{
@@ -139,6 +144,10 @@ private function updateProductStockItem(string $productSku): array
139144

140145
/**
141146
* Verify Downloadable Links are Preserved
147+
*
148+
* @param array $originalLinks
149+
* @param string $productSku
150+
* @return void
142151
*/
143152
private function verifyDownloadableLinksPreserved(array $originalLinks, string $productSku): void
144153
{
@@ -172,6 +181,10 @@ private function verifyDownloadableLinksPreserved(array $originalLinks, string $
172181

173182
/**
174183
* Verify product has downloadable links
184+
*
185+
* @param array $product
186+
* @param string $message
187+
* @return void
175188
*/
176189
private function verifyProductHasDownloadableLinks(array $product, string $message): void
177190
{
@@ -189,6 +202,9 @@ private function verifyProductHasDownloadableLinks(array $product, string $messa
189202

190203
/**
191204
* Get product by SKU
205+
*
206+
* @param string $sku
207+
* @return array
192208
*/
193209
private function getProductBySku(string $sku): array
194210
{

0 commit comments

Comments
 (0)