File tree Expand file tree Collapse file tree 4 files changed +17
-8
lines changed
Catalog/Test/Unit/Model/ResourceModel/Product
Downloadable/Block/Adminhtml/Catalog/Product Expand file tree Collapse file tree 4 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ public function testAddTierPriceDataByGroupId()
323
323
[ '(customer_group_id=? AND all_groups=0) OR all_groups=1 ' , $ customerGroupId ]
324
324
)
325
325
->willReturnSelf ();
326
- $ select ->expects ($ this ->once ())->method ('order ' )->with ('entity_id ' )->willReturnSelf ();
326
+ $ select ->expects ($ this ->once ())->method ('order ' )->with ('qty ' )->willReturnSelf ();
327
327
$ this ->connectionMock ->expects ($ this ->once ())
328
328
->method ('fetchAll ' )
329
329
->with ($ select )
@@ -375,7 +375,7 @@ public function testAddTierPriceData()
375
375
$ select ->expects ($ this ->exactly (1 ))->method ('where ' )
376
376
->with ('entity_id IN(?) ' , [1 ])
377
377
->willReturnSelf ();
378
- $ select ->expects ($ this ->once ())->method ('order ' )->with ('entity_id ' )->willReturnSelf ();
378
+ $ select ->expects ($ this ->once ())->method ('order ' )->with ('qty ' )->willReturnSelf ();
379
379
$ this ->connectionMock ->expects ($ this ->once ())
380
380
->method ('fetchAll ' )
381
381
->with ($ select )
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- /**
8
- * Adminhtml block for fieldset of downloadable product
9
- *
10
- * @author Magento Core Team <core@magentocommerce.com>
11
- */
12
7
namespace Magento \Downloadable \Block \Adminhtml \Catalog \Product \Composite \Fieldset ;
13
8
14
9
/**
10
+ * Adminhtml block for fieldset of downloadable product
11
+ *
15
12
* @api
16
13
* @since 100.0.2
17
14
* @deprecated
Original file line number Diff line number Diff line change @@ -136,6 +136,8 @@ public function isHidden()
136
136
}
137
137
138
138
/**
139
+ * Get group code
140
+ *
139
141
* @return string
140
142
*/
141
143
public function getGroupCode ()
@@ -154,6 +156,8 @@ public function getContentTabId()
154
156
}
155
157
156
158
/**
159
+ * Is downloadable
160
+ *
157
161
* @return bool
158
162
*/
159
163
public function isDownloadable ()
@@ -162,7 +166,7 @@ public function isDownloadable()
162
166
}
163
167
164
168
/**
165
- * @return $this
169
+ * @inheritdoc
166
170
*/
167
171
protected function _prepareLayout ()
168
172
{
Original file line number Diff line number Diff line change @@ -437,6 +437,8 @@ public function getConfig()
437
437
}
438
438
439
439
/**
440
+ * Is single store mode
441
+ *
440
442
* @return bool
441
443
*/
442
444
public function isSingleStoreMode ()
@@ -445,17 +447,23 @@ public function isSingleStoreMode()
445
447
}
446
448
447
449
/**
450
+ * Get base currency code
451
+ *
448
452
* @param null|string|bool|int|\Magento\Store\Model\Store $storeId $storeId
449
453
* @return string
454
+ * @throws \Magento\Framework\Exception\NoSuchEntityException
450
455
*/
451
456
public function getBaseCurrencyCode ($ storeId )
452
457
{
453
458
return $ this ->_storeManager ->getStore ($ storeId )->getBaseCurrencyCode ();
454
459
}
455
460
456
461
/**
462
+ * Get base currency symbol
463
+ *
457
464
* @param null|string|bool|int|\Magento\Store\Model\Store $storeId $storeId
458
465
* @return string
466
+ * @throws \Magento\Framework\Exception\NoSuchEntityException
459
467
*/
460
468
public function getBaseCurrencySymbol ($ storeId )
461
469
{
You can’t perform that action at this time.
0 commit comments