Skip to content

Commit 086f401

Browse files
AC-15182: PHPUnit 12 Upgrade | Refactoring helper classes
1 parent 4d295a2 commit 086f401

File tree

2 files changed

+262
-0
lines changed

2 files changed

+262
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* - negotiableQuoteItem (used in 10 files) - NegotiableQuoteItem data for B2B quotes
2020
*
2121
* All other CartItemExtensionInterface methods return null by default.
22+
*
23+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
2224
*/
2325
class CartItemExtensionTestHelper implements CartItemExtensionInterface
2426
{
@@ -64,6 +66,7 @@ public function getDiscounts()
6466
*
6567
* @param mixed $discounts
6668
* @return $this
69+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
6770
*/
6871
public function setDiscounts($discounts)
6972
{
@@ -85,6 +88,7 @@ public function getQuoteItemTestAttribute()
8588
*
8689
* @param mixed $quoteItemTestAttribute
8790
* @return $this
91+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
8892
*/
8993
public function setQuoteItemTestAttribute($quoteItemTestAttribute)
9094
{

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

Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
* - negotiableQuoteTotals - NegotiableQuoteTotals object for B2B quotes
2020
*
2121
* All other TotalsExtensionInterface methods return null by default.
22+
*
23+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
24+
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
2225
*/
2326
class TotalsExtensionTestHelper implements TotalsExtensionInterface
2427
{
@@ -48,4 +51,259 @@ public function setNegotiableQuoteTotals($totals)
4851
$this->negotiableQuoteTotals = $totals;
4952
return $this;
5053
}
54+
55+
/**
56+
* @return mixed
57+
*/
58+
public function getCouponLabel()
59+
{
60+
return null;
61+
}
62+
63+
/**
64+
* @param mixed $couponLabel
65+
* @return $this
66+
*/
67+
public function setCouponLabel($couponLabel)
68+
{
69+
return $this;
70+
}
71+
72+
/**
73+
* @return mixed
74+
*/
75+
public function getBaseCustomerBalanceAmount()
76+
{
77+
return null;
78+
}
79+
80+
/**
81+
* @param mixed $amount
82+
* @return $this
83+
*/
84+
public function setBaseCustomerBalanceAmount($amount)
85+
{
86+
return $this;
87+
}
88+
89+
/**
90+
* @return mixed
91+
*/
92+
public function getCustomerBalanceAmount()
93+
{
94+
return null;
95+
}
96+
97+
/**
98+
* @param mixed $amount
99+
* @return $this
100+
*/
101+
public function setCustomerBalanceAmount($amount)
102+
{
103+
return $this;
104+
}
105+
106+
/**
107+
* @return mixed
108+
*/
109+
public function getBaseGiftCardsAmount()
110+
{
111+
return null;
112+
}
113+
114+
/**
115+
* @param mixed $amount
116+
* @return $this
117+
*/
118+
public function setBaseGiftCardsAmount($amount)
119+
{
120+
return $this;
121+
}
122+
123+
/**
124+
* @return mixed
125+
*/
126+
public function getGiftCardsAmount()
127+
{
128+
return null;
129+
}
130+
131+
/**
132+
* @param mixed $amount
133+
* @return $this
134+
*/
135+
public function setGiftCardsAmount($amount)
136+
{
137+
return $this;
138+
}
139+
140+
/**
141+
* @return mixed
142+
*/
143+
public function getGwItemsBasePrice()
144+
{
145+
return null;
146+
}
147+
148+
/**
149+
* @param mixed $price
150+
* @return $this
151+
*/
152+
public function setGwItemsBasePrice($price)
153+
{
154+
return $this;
155+
}
156+
157+
/**
158+
* @return mixed
159+
*/
160+
public function getGwItemsPrice()
161+
{
162+
return null;
163+
}
164+
165+
/**
166+
* @param mixed $price
167+
* @return $this
168+
*/
169+
public function setGwItemsPrice($price)
170+
{
171+
return $this;
172+
}
173+
174+
/**
175+
* @return mixed
176+
*/
177+
public function getGwCardBasePrice()
178+
{
179+
return null;
180+
}
181+
182+
/**
183+
* @param mixed $price
184+
* @return $this
185+
*/
186+
public function setGwCardBasePrice($price)
187+
{
188+
return $this;
189+
}
190+
191+
/**
192+
* @return mixed
193+
*/
194+
public function getGwCardPrice()
195+
{
196+
return null;
197+
}
198+
199+
/**
200+
* @param mixed $price
201+
* @return $this
202+
*/
203+
public function setGwCardPrice($price)
204+
{
205+
return $this;
206+
}
207+
208+
/**
209+
* @return mixed
210+
*/
211+
public function getGwBaseTaxAmount()
212+
{
213+
return null;
214+
}
215+
216+
/**
217+
* @param mixed $amount
218+
* @return $this
219+
*/
220+
public function setGwBaseTaxAmount($amount)
221+
{
222+
return $this;
223+
}
224+
225+
/**
226+
* @return mixed
227+
*/
228+
public function getGwTaxAmount()
229+
{
230+
return null;
231+
}
232+
233+
/**
234+
* @param mixed $amount
235+
* @return $this
236+
*/
237+
public function setGwTaxAmount($amount)
238+
{
239+
return $this;
240+
}
241+
242+
/**
243+
* @return mixed
244+
*/
245+
public function getGwItemsBaseTaxAmount()
246+
{
247+
return null;
248+
}
249+
250+
/**
251+
* @param mixed $amount
252+
* @return $this
253+
*/
254+
public function setGwItemsBaseTaxAmount($amount)
255+
{
256+
return $this;
257+
}
258+
259+
/**
260+
* @return mixed
261+
*/
262+
public function getGwItemsTaxAmount()
263+
{
264+
return null;
265+
}
266+
267+
/**
268+
* @param mixed $amount
269+
* @return $this
270+
*/
271+
public function setGwItemsTaxAmount($amount)
272+
{
273+
return $this;
274+
}
275+
276+
/**
277+
* @return mixed
278+
*/
279+
public function getGwCardBaseTaxAmount()
280+
{
281+
return null;
282+
}
283+
284+
/**
285+
* @param mixed $amount
286+
* @return $this
287+
*/
288+
public function setGwCardBaseTaxAmount($amount)
289+
{
290+
return $this;
291+
}
292+
293+
/**
294+
* @return mixed
295+
*/
296+
public function getGwCardTaxAmount()
297+
{
298+
return null;
299+
}
300+
301+
/**
302+
* @param mixed $amount
303+
* @return $this
304+
*/
305+
public function setGwCardTaxAmount($amount)
306+
{
307+
return $this;
308+
}
51309
}

0 commit comments

Comments
 (0)