Skip to content

Commit 085ea49

Browse files
committed
AC-14095: CNS WebApi Broken and Failed tests
1 parent 5223b10 commit 085ea49

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

app/code/Magento/Downloadable/Test/Fixture/DownloadableProduct.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,17 @@ private function prepareLinksData(array $data): array
116116
'id' => null,
117117
'title' => $link['title'] ?? 'Test Link%uniqid%',
118118
'price' => $link['price'] ?? 0,
119-
'link_type' => $link['link_type'] ?? 'file',
120-
'link_url' => null,
121-
'link_file' => $this->generateDownloadableLink($link['link_file'] ?? 'test-' . uniqid() . '.txt'),
122-
'is_shareable' => $link['is_shareable'] ?? 0,
123-
'number_of_downloads' => $link['number_of_downloads'] ?? 5,
119+
120+
'link_type' => \Magento\Downloadable\Helper\Download::LINK_TYPE_URL,
121+
'link_url' => 'http://example.com/downloadable.txt',
122+
'is_shareable' => \Magento\Downloadable\Model\Link::LINK_SHAREABLE_CONFIG,
123+
'number_of_downloads' => 10,
124+
125+
//'link_type' => $link['link_type'] ?? 'file',
126+
//'link_url' => null,
127+
//'link_file' => $this->generateDownloadableLink($link['link_file'] ?? 'test-' . uniqid() . '.txt'),
128+
//'is_shareable' => $link['is_shareable'] ?? 0,
129+
//'number_of_downloads' => $link['number_of_downloads'] ?? 5,
124130
'sort_order' => $link['sort_order'] ?? 10,
125131
];
126132
}

0 commit comments

Comments
 (0)