File tree 2 files changed +0
-19
lines changed
2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change 8
8
9
9
namespace CM \Payments \Service ;
10
10
11
- use CM \Payments \Api \Config \ConfigInterface ;
12
11
use CM \Payments \Api \Service \Payment \Request \RequestPartInterface ;
13
12
use CM \Payments \Api \Service \PaymentRequestBuilderInterface ;
14
13
use CM \Payments \Client \Model \Request \PaymentCreate ;
19
18
20
19
class PaymentRequestBuilder implements PaymentRequestBuilderInterface
21
20
{
22
- /**
23
- * @var ConfigInterface
24
- */
25
- private $ config ;
26
-
27
21
/**
28
22
* @var ClientPaymentCreateFactory
29
23
*/
@@ -42,18 +36,15 @@ class PaymentRequestBuilder implements PaymentRequestBuilderInterface
42
36
/**
43
37
* PaymentRequestBuilder constructor
44
38
*
45
- * @param ConfigInterface $config
46
39
* @param ClientPaymentCreateFactory $clientPaymentCreateFactory
47
40
* @param PaymentCreateRequestFactory $paymentCreateRequestFactory
48
41
* @param RequestPartInterface[] $partInterfaces
49
42
*/
50
43
public function __construct (
51
- ConfigInterface $ config ,
52
44
ClientPaymentCreateFactory $ clientPaymentCreateFactory ,
53
45
PaymentCreateRequestFactory $ paymentCreateRequestFactory ,
54
46
array $ parts
55
47
) {
56
- $ this ->config = $ config ;
57
48
$ this ->clientPaymentCreateFactory = $ clientPaymentCreateFactory ;
58
49
$ this ->paymentCreateRequestFactory = $ paymentCreateRequestFactory ;
59
50
$ this ->parts = $ parts ;
Original file line number Diff line number Diff line change @@ -29,11 +29,6 @@ class PaymentRequestBuilderTest extends UnitTestCase
29
29
*/
30
30
private $ paymentRequestBuilder ;
31
31
32
- /**
33
- * @var \CM\Payments\Api\Config\ConfigInterface
34
- */
35
- private $ configMock ;
36
-
37
32
public function testCreateIdealPaymentRequestBuilder ()
38
33
{
39
34
$ orderMock = $ this ->getOrderMock (ConfigProvider::CODE_IDEAL );
@@ -118,15 +113,10 @@ protected function setUp(): void
118
113
{
119
114
parent ::setUp ();
120
115
121
- $ this ->configMock = $ this ->getMockBuilder (ConfigInterface::class)
122
- ->disableOriginalConstructor ()
123
- ->getMock ();
124
-
125
116
$ clientPaymentCreateFactoryMock = $ this ->getMockupFactory (PaymentCreate::class);
126
117
$ paymentCreateRequestFactoryMock = $ this ->getMockupFactory (PaymentCreateRequest::class);
127
118
128
119
$ this ->paymentRequestBuilder = new PaymentRequestBuilder (
129
- $ this ->configMock ,
130
120
$ clientPaymentCreateFactoryMock ,
131
121
$ paymentCreateRequestFactoryMock ,
132
122
[
You can’t perform that action at this time.
0 commit comments