File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
app/code/Magento/SalesRule/Test/Unit/Controller/Adminhtml/Promo/Quote Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 31
31
use Magento \Framework \App \Response \Http as HttpResponse ;
32
32
33
33
/**
34
+ * Class for testing coupon generation
35
+ *
34
36
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
37
+ * @SuppressWarnings(PHPMD.TooManyFields)
35
38
*/
36
39
class GenerateTest extends TestCase
37
40
{
@@ -41,12 +44,18 @@ class GenerateTest extends TestCase
41
44
/** @const XML_COUPON_QUANTITY_TEST_VALUE */
42
45
private const XML_COUPON_QUANTITY_TEST_VALUE = 250000 ;
43
46
47
+ /**
48
+ * @var array
49
+ */
44
50
private array $ requestMockData = [
45
51
'qty ' => 2 ,
46
52
'length ' => 10 ,
47
53
'rule_id ' => 1
48
54
];
49
55
56
+ /**
57
+ * @var array
58
+ */
50
59
private array $ requestMockDataWithInvalidCouponQuantity = [
51
60
'qty ' => 250001 ,
52
61
'length ' => 10 ,
@@ -414,7 +423,9 @@ public function testExecuteWithInvalidCouponQuantity()
414
423
$ helperData ->expects ($ this ->once ())
415
424
->method ('jsonEncode ' )
416
425
->with ([
417
- 'messages ' => __ ('Coupon qty should be less than or equal to the coupon qty in the store configuration. ' )
426
+ 'messages ' => __ (
427
+ 'Coupon qty should be less than or equal to the coupon qty in the store configuration. '
428
+ )
418
429
]);
419
430
$ layout = $ this ->getMockBuilder (Layout::class)
420
431
->disableOriginalConstructor ()
You can’t perform that action at this time.
0 commit comments