Skip to content

Commit 76ff762

Browse files
Merge remote-tracking branch 'origin/AC-15108-NegotiableQuote' into Arrows-AC-14808-v1
2 parents 71a9169 + 35d7cd8 commit 76ff762

17 files changed

+2245
-33
lines changed

app/code/Magento/Catalog/Test/Unit/Helper/ProductTestHelper.php

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,20 @@ class ProductTestHelper extends Product
3535
*/
3636
private $isObjectNewCallCount = 0;
3737

38-
public function __construct()
38+
/**
39+
* @var float
40+
*/
41+
private $cost;
42+
43+
/**
44+
* Constructor that accepts cost
45+
*
46+
* @param float $cost
47+
*/
48+
public function __construct($cost)
3949
{
40-
$this->_data = [];
50+
$this->cost = $cost;
51+
// Skip parent constructor to avoid dependency injection issues
4152
}
4253

4354
/**
@@ -138,4 +149,14 @@ public function hasOptions(): bool
138149
{
139150
return isset($this->_data['has_options']) && $this->_data['has_options'];
140151
}
141-
}
152+
153+
/**
154+
* Get cost
155+
*
156+
* @return float
157+
*/
158+
public function getCost()
159+
{
160+
return $this->cost;
161+
}
162+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?php
2+
/**
3+
* Copyright 2025 Adobe
4+
* All Rights Reserved.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Integration\Test\Unit\Helper;
9+
10+
use Magento\Integration\Model\Integration;
11+
12+
/**
13+
* Test helper for Integration
14+
*
15+
* This helper extends the concrete Integration class to provide
16+
* test-specific functionality without dependency injection issues.
17+
*/
18+
class IntegrationTestHelper extends Integration
19+
{
20+
/**
21+
* @var string
22+
*/
23+
private $name;
24+
25+
/**
26+
* Constructor that skips parent initialization
27+
*/
28+
public function __construct()
29+
{
30+
// Skip parent constructor to avoid dependency injection issues
31+
}
32+
33+
/**
34+
* Get name
35+
*
36+
* @return string|null
37+
*/
38+
public function getName()
39+
{
40+
return $this->name;
41+
}
42+
43+
/**
44+
* Set name
45+
*
46+
* @param string $name
47+
* @return $this
48+
*/
49+
public function setName($name)
50+
{
51+
$this->name = $name;
52+
return $this;
53+
}
54+
}
55+
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
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\Model\Quote\Address\Rate;
11+
12+
/**
13+
* Test helper for Address Rate
14+
*
15+
* This helper extends the concrete Rate class to provide
16+
* test-specific functionality without dependency injection issues.
17+
*/
18+
class AddressRateTestHelper extends Rate
19+
{
20+
/**
21+
* @var string
22+
*/
23+
private $code;
24+
25+
/**
26+
* @var float
27+
*/
28+
private $price;
29+
30+
/**
31+
* @var string
32+
*/
33+
private $carrierTitle;
34+
35+
/**
36+
* @var string
37+
*/
38+
private $methodTitle;
39+
40+
/**
41+
* Constructor that skips parent initialization
42+
*/
43+
public function __construct()
44+
{
45+
// Skip parent constructor to avoid dependency injection issues
46+
}
47+
48+
/**
49+
* Get code
50+
*
51+
* @return string|null
52+
*/
53+
public function getCode()
54+
{
55+
return $this->code;
56+
}
57+
58+
/**
59+
* Set code
60+
*
61+
* @param string $code
62+
* @return $this
63+
*/
64+
public function setCode($code)
65+
{
66+
$this->code = $code;
67+
return $this;
68+
}
69+
70+
/**
71+
* Get price
72+
*
73+
* @return float|null
74+
*/
75+
public function getPrice()
76+
{
77+
return $this->price;
78+
}
79+
80+
/**
81+
* Set price
82+
*
83+
* @param float $price
84+
* @return $this
85+
*/
86+
public function setPrice($price)
87+
{
88+
$this->price = $price;
89+
return $this;
90+
}
91+
92+
/**
93+
* Get carrier title
94+
*
95+
* @return string|null
96+
*/
97+
public function getCarrierTitle()
98+
{
99+
return $this->carrierTitle;
100+
}
101+
102+
/**
103+
* Set carrier title
104+
*
105+
* @param string $carrierTitle
106+
* @return $this
107+
*/
108+
public function setCarrierTitle($carrierTitle)
109+
{
110+
$this->carrierTitle = $carrierTitle;
111+
return $this;
112+
}
113+
114+
/**
115+
* Get method title
116+
*
117+
* @return string|null
118+
*/
119+
public function getMethodTitle()
120+
{
121+
return $this->methodTitle;
122+
}
123+
124+
/**
125+
* Set method title
126+
*
127+
* @param string $methodTitle
128+
* @return $this
129+
*/
130+
public function setMethodTitle($methodTitle)
131+
{
132+
$this->methodTitle = $methodTitle;
133+
return $this;
134+
}
135+
136+
/**
137+
* Set data
138+
*
139+
* @param string $key
140+
* @param mixed $value
141+
* @return $this
142+
*/
143+
public function setData($key, $value = null)
144+
{
145+
return $this;
146+
}
147+
148+
/**
149+
* Check if deleted
150+
*
151+
* @param bool|null $isDeleted
152+
* @return $this
153+
*/
154+
public function isDeleted($isDeleted = null)
155+
{
156+
return $this;
157+
}
158+
}
159+

0 commit comments

Comments
 (0)