Skip to content

Commit eaa3f87

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

File tree

2 files changed

+155
-0
lines changed

2 files changed

+155
-0
lines changed

app/code/Magento/Customer/Test/Unit/Helper/CustomerExtensionTestHelper.php

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
*
1515
* Provides stub implementation for customer extension attributes.
1616
* Only implements companyAttributes which is actively used by tests (106 occurrences).
17+
*
18+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
1719
*/
1820
class CustomerExtensionTestHelper implements CustomerExtensionInterface
1921
{
@@ -53,4 +55,72 @@ public function setCompanyAttributes($companyAttributes)
5355
$this->companyAttributes = $companyAttributes;
5456
return $this;
5557
}
58+
59+
/**
60+
* @return mixed
61+
*/
62+
public function getIsSubscribed()
63+
{
64+
return null;
65+
}
66+
67+
/**
68+
* @param mixed $isSubscribed
69+
* @return $this
70+
*/
71+
public function setIsSubscribed($isSubscribed)
72+
{
73+
return $this;
74+
}
75+
76+
/**
77+
* @return mixed
78+
*/
79+
public function getAssistanceAllowed()
80+
{
81+
return null;
82+
}
83+
84+
/**
85+
* @param mixed $assistanceAllowed
86+
* @return $this
87+
*/
88+
public function setAssistanceAllowed($assistanceAllowed)
89+
{
90+
return $this;
91+
}
92+
93+
/**
94+
* @return mixed
95+
*/
96+
public function getAmazonId()
97+
{
98+
return null;
99+
}
100+
101+
/**
102+
* @param mixed $amazonId
103+
* @return $this
104+
*/
105+
public function setAmazonId($amazonId)
106+
{
107+
return $this;
108+
}
109+
110+
/**
111+
* @return mixed
112+
*/
113+
public function getVertexCustomerCode()
114+
{
115+
return null;
116+
}
117+
118+
/**
119+
* @param mixed $vertexCustomerCode
120+
* @return $this
121+
*/
122+
public function setVertexCustomerCode($vertexCustomerCode)
123+
{
124+
return $this;
125+
}
56126
}

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

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,4 +306,89 @@ public function setGwCardTaxAmount($amount)
306306
{
307307
return $this;
308308
}
309+
310+
/**
311+
* @return mixed
312+
*/
313+
public function getCouponCodes()
314+
{
315+
return null;
316+
}
317+
318+
/**
319+
* @param mixed $couponCodes
320+
* @return $this
321+
*/
322+
public function setCouponCodes($couponCodes)
323+
{
324+
return $this;
325+
}
326+
327+
/**
328+
* @return mixed
329+
*/
330+
public function getCouponsLabels()
331+
{
332+
return null;
333+
}
334+
335+
/**
336+
* @param mixed $couponsLabels
337+
* @return $this
338+
*/
339+
public function setCouponsLabels($couponsLabels)
340+
{
341+
return $this;
342+
}
343+
344+
/**
345+
* @return mixed
346+
*/
347+
public function getRewardPointsBalance()
348+
{
349+
return null;
350+
}
351+
352+
/**
353+
* @param mixed $rewardPointsBalance
354+
* @return $this
355+
*/
356+
public function setRewardPointsBalance($rewardPointsBalance)
357+
{
358+
return $this;
359+
}
360+
361+
/**
362+
* @return mixed
363+
*/
364+
public function getRewardCurrencyAmount()
365+
{
366+
return null;
367+
}
368+
369+
/**
370+
* @param mixed $rewardCurrencyAmount
371+
* @return $this
372+
*/
373+
public function setRewardCurrencyAmount($rewardCurrencyAmount)
374+
{
375+
return $this;
376+
}
377+
378+
/**
379+
* @return mixed
380+
*/
381+
public function getBaseRewardCurrencyAmount()
382+
{
383+
return null;
384+
}
385+
386+
/**
387+
* @param mixed $baseRewardCurrencyAmount
388+
* @return $this
389+
*/
390+
public function setBaseRewardCurrencyAmount($baseRewardCurrencyAmount)
391+
{
392+
return $this;
393+
}
309394
}

0 commit comments

Comments
 (0)