File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
app/code/Magento/Downloadable/Test/Fixture Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -116,11 +116,17 @@ private function prepareLinksData(array $data): array
116
116
'id ' => null ,
117
117
'title ' => $ link ['title ' ] ?? 'Test Link%uniqid% ' ,
118
118
'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,
124
130
'sort_order ' => $ link ['sort_order ' ] ?? 10 ,
125
131
];
126
132
}
You can’t perform that action at this time.
0 commit comments