Skip to content

Commit 6e86d5a

Browse files
committed
AC-14808: integration test faliure fix
1 parent 711bcea commit 6e86d5a

File tree

1 file changed

+216
-0
lines changed

1 file changed

+216
-0
lines changed

app/code/Magento/Quote/Test/Unit/Helper/TotalsExtensionTestHelper.php

Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,46 @@ class TotalsExtensionTestHelper implements TotalsExtensionInterface
1919
*/
2020
private $negotiableQuoteTotals;
2121

22+
/**
23+
* @var string|null
24+
*/
25+
private $couponLabel;
26+
27+
/**
28+
* @var float|null
29+
*/
30+
private $rewardPointsBalance;
31+
32+
/**
33+
* @var float|null
34+
*/
35+
private $rewardCurrencyAmount;
36+
37+
/**
38+
* @var float|null
39+
*/
40+
private $baseRewardCurrencyAmount;
41+
42+
/**
43+
* @var string[]|null
44+
*/
45+
private $couponCodes;
46+
47+
/**
48+
* @var string[]|null
49+
*/
50+
private $couponsLabels;
51+
52+
/**
53+
* @var float|null
54+
*/
55+
private $baseCustomerBalanceAmount;
56+
57+
/**
58+
* @var float|null
59+
*/
60+
private $customerBalanceAmount;
61+
2262
/**
2363
* Get negotiable quote totals
2464
*
@@ -40,4 +80,180 @@ public function setNegotiableQuoteTotals($totals)
4080
$this->negotiableQuoteTotals = $totals;
4181
return $this;
4282
}
83+
84+
/**
85+
* Get coupon label
86+
*
87+
* @return string|null
88+
*/
89+
public function getCouponLabel()
90+
{
91+
return $this->couponLabel;
92+
}
93+
94+
/**
95+
* Set coupon label
96+
*
97+
* @param string|null $couponLabel
98+
* @return $this
99+
*/
100+
public function setCouponLabel($couponLabel)
101+
{
102+
$this->couponLabel = $couponLabel;
103+
return $this;
104+
}
105+
106+
/**
107+
* Get reward points balance
108+
*
109+
* @return float|null
110+
*/
111+
public function getRewardPointsBalance()
112+
{
113+
return $this->rewardPointsBalance;
114+
}
115+
116+
/**
117+
* Set reward points balance
118+
*
119+
* @param float|null $rewardPointsBalance
120+
* @return $this
121+
*/
122+
public function setRewardPointsBalance($rewardPointsBalance)
123+
{
124+
$this->rewardPointsBalance = $rewardPointsBalance;
125+
return $this;
126+
}
127+
128+
/**
129+
* Get reward currency amount
130+
*
131+
* @return float|null
132+
*/
133+
public function getRewardCurrencyAmount()
134+
{
135+
return $this->rewardCurrencyAmount;
136+
}
137+
138+
/**
139+
* Set reward currency amount
140+
*
141+
* @param float|null $rewardCurrencyAmount
142+
* @return $this
143+
*/
144+
public function setRewardCurrencyAmount($rewardCurrencyAmount)
145+
{
146+
$this->rewardCurrencyAmount = $rewardCurrencyAmount;
147+
return $this;
148+
}
149+
150+
/**
151+
* Get base reward currency amount
152+
*
153+
* @return float|null
154+
*/
155+
public function getBaseRewardCurrencyAmount()
156+
{
157+
return $this->baseRewardCurrencyAmount;
158+
}
159+
160+
/**
161+
* Set base reward currency amount
162+
*
163+
* @param float|null $baseRewardCurrencyAmount
164+
* @return $this
165+
*/
166+
public function setBaseRewardCurrencyAmount($baseRewardCurrencyAmount)
167+
{
168+
$this->baseRewardCurrencyAmount = $baseRewardCurrencyAmount;
169+
return $this;
170+
}
171+
172+
/**
173+
* Get coupon codes
174+
*
175+
* @return string[]|null
176+
*/
177+
public function getCouponCodes()
178+
{
179+
return $this->couponCodes;
180+
}
181+
182+
/**
183+
* Set coupon codes
184+
*
185+
* @param string[]|null $couponCodes
186+
* @return $this
187+
*/
188+
public function setCouponCodes($couponCodes)
189+
{
190+
$this->couponCodes = $couponCodes;
191+
return $this;
192+
}
193+
194+
/**
195+
* Get coupons labels
196+
*
197+
* @return string[]|null
198+
*/
199+
public function getCouponsLabels()
200+
{
201+
return $this->couponsLabels;
202+
}
203+
204+
/**
205+
* Set coupons labels
206+
*
207+
* @param string[]|null $couponsLabels
208+
* @return $this
209+
*/
210+
public function setCouponsLabels($couponsLabels)
211+
{
212+
$this->couponsLabels = $couponsLabels;
213+
return $this;
214+
}
215+
216+
/**
217+
* Get base customer balance amount
218+
*
219+
* @return float|null
220+
*/
221+
public function getBaseCustomerBalanceAmount()
222+
{
223+
return $this->baseCustomerBalanceAmount;
224+
}
225+
226+
/**
227+
* Set base customer balance amount
228+
*
229+
* @param float|null $baseCustomerBalanceAmount
230+
* @return $this
231+
*/
232+
public function setBaseCustomerBalanceAmount($baseCustomerBalanceAmount)
233+
{
234+
$this->baseCustomerBalanceAmount = $baseCustomerBalanceAmount;
235+
return $this;
236+
}
237+
238+
/**
239+
* Get customer balance amount
240+
*
241+
* @return float|null
242+
*/
243+
public function getCustomerBalanceAmount()
244+
{
245+
return $this->customerBalanceAmount;
246+
}
247+
248+
/**
249+
* Set customer balance amount
250+
*
251+
* @param float|null $customerBalanceAmount
252+
* @return $this
253+
*/
254+
public function setCustomerBalanceAmount($customerBalanceAmount)
255+
{
256+
$this->customerBalanceAmount = $customerBalanceAmount;
257+
return $this;
258+
}
43259
}

0 commit comments

Comments
 (0)