Skip to content

Commit 5887e5f

Browse files
AC-15182: PHPUnit 12 Upgrade | Removed Helper Files
1 parent c8cf830 commit 5887e5f

File tree

5 files changed

+274
-0
lines changed

5 files changed

+274
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
/**
3+
* Copyright 2025 Adobe
4+
* All Rights Reserved.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Customer\Test\Unit\Helper;
9+
10+
use Magento\Customer\Api\Data\CustomerExtensionInterface;
11+
12+
/**
13+
* Test helper for CustomerExtension to support dynamic getCompanyAttributes/setCompanyAttributes methods
14+
*/
15+
class CustomerExtensionTestHelper implements CustomerExtensionInterface
16+
{
17+
/**
18+
* @var \Magento\Company\Api\Data\CompanyCustomerInterface|null
19+
*/
20+
private $companyAttributes;
21+
22+
/**
23+
* Get company attributes
24+
*
25+
* @return \Magento\Company\Api\Data\CompanyCustomerInterface|null
26+
*/
27+
public function getCompanyAttributes()
28+
{
29+
return $this->companyAttributes;
30+
}
31+
32+
/**
33+
* Set company attributes
34+
*
35+
* @param \Magento\Company\Api\Data\CompanyCustomerInterface|null $companyAttributes
36+
* @return $this
37+
*/
38+
public function setCompanyAttributes($companyAttributes)
39+
{
40+
$this->companyAttributes = $companyAttributes;
41+
return $this;
42+
}
43+
}
44+
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<?php
2+
/**
3+
* Copyright 2025 Adobe
4+
* All Rights Reserved.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Quote\Test\Unit\Helper;
9+
10+
use Magento\Quote\Api\Data\CartExtensionInterface;
11+
12+
/**
13+
* Test helper for CartExtension to support dynamic getNegotiableQuote/setNegotiableQuote methods
14+
*/
15+
class CartExtensionTestHelper implements CartExtensionInterface
16+
{
17+
/**
18+
* @var \Magento\NegotiableQuote\Api\Data\NegotiableQuoteInterface|null
19+
*/
20+
private $negotiableQuote;
21+
22+
/**
23+
* @var array
24+
*/
25+
private $shippingAssignments = [];
26+
27+
/**
28+
* @var int|null
29+
*/
30+
private $companyId;
31+
32+
/**
33+
* Get negotiable quote
34+
*
35+
* @return \Magento\NegotiableQuote\Api\Data\NegotiableQuoteInterface|null
36+
*/
37+
public function getNegotiableQuote()
38+
{
39+
return $this->negotiableQuote;
40+
}
41+
42+
/**
43+
* Set negotiable quote
44+
*
45+
* @param \Magento\NegotiableQuote\Api\Data\NegotiableQuoteInterface|null $negotiableQuote
46+
* @return $this
47+
*/
48+
public function setNegotiableQuote($negotiableQuote)
49+
{
50+
$this->negotiableQuote = $negotiableQuote;
51+
return $this;
52+
}
53+
54+
/**
55+
* Get shipping assignments
56+
*
57+
* @return \Magento\Quote\Api\Data\ShippingAssignmentInterface[]|null
58+
*/
59+
public function getShippingAssignments()
60+
{
61+
return $this->shippingAssignments;
62+
}
63+
64+
/**
65+
* Set shipping assignments
66+
*
67+
* @param \Magento\Quote\Api\Data\ShippingAssignmentInterface[] $shippingAssignments
68+
* @return $this
69+
*/
70+
public function setShippingAssignments($shippingAssignments)
71+
{
72+
$this->shippingAssignments = $shippingAssignments;
73+
return $this;
74+
}
75+
76+
/**
77+
* Get company ID
78+
*
79+
* @return int|null
80+
*/
81+
public function getCompanyId()
82+
{
83+
return $this->companyId;
84+
}
85+
86+
/**
87+
* Set company ID
88+
*
89+
* @param int|null $companyId
90+
* @return $this
91+
*/
92+
public function setCompanyId($companyId)
93+
{
94+
$this->companyId = $companyId;
95+
return $this;
96+
}
97+
}
98+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
/**
3+
* Copyright 2025 Adobe
4+
* All Rights Reserved.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Quote\Test\Unit\Helper;
9+
10+
use Magento\Quote\Api\Data\CartItemExtensionInterface;
11+
12+
/**
13+
* Test helper for CartItemExtension to support dynamic getNegotiableQuoteItem/setNegotiableQuoteItem methods
14+
*/
15+
class CartItemExtensionTestHelper implements CartItemExtensionInterface
16+
{
17+
/**
18+
* @var \Magento\NegotiableQuote\Api\Data\NegotiableQuoteItemInterface|null
19+
*/
20+
private $negotiableQuoteItem;
21+
22+
/**
23+
* Get negotiable quote item
24+
*
25+
* @return \Magento\NegotiableQuote\Api\Data\NegotiableQuoteItemInterface|null
26+
*/
27+
public function getNegotiableQuoteItem()
28+
{
29+
return $this->negotiableQuoteItem;
30+
}
31+
32+
/**
33+
* Set negotiable quote item
34+
*
35+
* @param \Magento\NegotiableQuote\Api\Data\NegotiableQuoteItemInterface|null $negotiableQuoteItem
36+
* @return $this
37+
*/
38+
public function setNegotiableQuoteItem($negotiableQuoteItem)
39+
{
40+
$this->negotiableQuoteItem = $negotiableQuoteItem;
41+
return $this;
42+
}
43+
}
44+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
/**
3+
* Copyright 2025 Adobe
4+
* All Rights Reserved.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Quote\Test\Unit\Helper;
9+
10+
use Magento\Quote\Api\Data\TotalsExtensionInterface;
11+
12+
/**
13+
* Test helper for TotalsExtension to support extension attribute methods
14+
*/
15+
class TotalsExtensionTestHelper implements TotalsExtensionInterface
16+
{
17+
/**
18+
* @var \Magento\NegotiableQuote\Api\Data\NegotiableQuoteTotalsInterface|null
19+
*/
20+
private $negotiableQuoteTotals;
21+
22+
/**
23+
* Get negotiable quote totals
24+
*
25+
* @return \Magento\NegotiableQuote\Api\Data\NegotiableQuoteTotalsInterface|null
26+
*/
27+
public function getNegotiableQuoteTotals()
28+
{
29+
return $this->negotiableQuoteTotals;
30+
}
31+
32+
/**
33+
* Set negotiable quote totals
34+
*
35+
* @param \Magento\NegotiableQuote\Api\Data\NegotiableQuoteTotalsInterface|null $totals
36+
* @return $this
37+
*/
38+
public function setNegotiableQuoteTotals($totals)
39+
{
40+
$this->negotiableQuoteTotals = $totals;
41+
return $this;
42+
}
43+
}
44+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
/**
3+
* Copyright 2025 Adobe
4+
* All Rights Reserved.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Quote\Test\Unit\Helper;
9+
10+
use Magento\Quote\Api\Data\TotalsItemExtensionInterface;
11+
12+
/**
13+
* Test helper for TotalsItemExtension to support extension attribute methods
14+
*/
15+
class TotalsItemExtensionTestHelper implements TotalsItemExtensionInterface
16+
{
17+
/**
18+
* @var \Magento\NegotiableQuote\Api\Data\NegotiableQuoteItemTotalsInterface|null
19+
*/
20+
private $negotiableQuoteItemTotals;
21+
22+
/**
23+
* Get negotiable quote item totals
24+
*
25+
* @return \Magento\NegotiableQuote\Api\Data\NegotiableQuoteItemTotalsInterface|null
26+
*/
27+
public function getNegotiableQuoteItemTotals()
28+
{
29+
return $this->negotiableQuoteItemTotals;
30+
}
31+
32+
/**
33+
* Set negotiable quote item totals
34+
*
35+
* @param \Magento\NegotiableQuote\Api\Data\NegotiableQuoteItemTotalsInterface|null $totals
36+
* @return $this
37+
*/
38+
public function setNegotiableQuoteItemTotals($totals)
39+
{
40+
$this->negotiableQuoteItemTotals = $totals;
41+
return $this;
42+
}
43+
}
44+

0 commit comments

Comments
 (0)