Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
discount_10percent_generalusers.php File Reference

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $salesRule = $objectManager->create(\Magento\SalesRule\Model\Rule::class)
 
 $data
 

Variable Documentation

◆ $data

$data
Initial value:
= [
'name' => 'Test Coupon for General',
'is_active' => true,
'website_ids' => [
\Magento\Store\Model\StoreManagerInterface::class
)->getStore()->getWebsiteId()
],
'customer_group_ids' => [1],
'coupon_code' => uniqid(),
'discount_amount' => 10,
'discount_step' => 1
]

Definition at line 14 of file discount_10percent_generalusers.php.

◆ $objectManager

SalesRule 10% discount coupon

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.

Definition at line 9 of file discount_10percent_generalusers.php.

◆ $salesRule

$salesRule = $objectManager->create(\Magento\SalesRule\Model\Rule::class)

Definition at line 12 of file discount_10percent_generalusers.php.