@@ -40,6 +40,9 @@ class HandlerTest extends \PHPUnit_Framework_TestCase
40
40
/** @var \Magento\Framework\Reflection\DataObjectProcessor|\PHPUnit_Framework_MockObject_MockObject */
41
41
protected $ _dataObjectProcessorMock ;
42
42
43
+ /** @var \Magento\Framework\Reflection\MethodsMap|\PHPUnit_Framework_MockObject_MockObject */
44
+ protected $ _methodsMapProcessorMock ;
45
+
43
46
/** @var array */
44
47
protected $ _arguments ;
45
48
@@ -67,7 +70,13 @@ protected function setUp()
67
70
);
68
71
$ this ->_dataObjectProcessorMock = $ this ->getMock (
69
72
'Magento\Framework\Reflection\DataObjectProcessor ' ,
70
- ['getMethodReturnType ' ],
73
+ [],
74
+ [],
75
+ '' ,
76
+ false );
77
+ $ this ->_methodsMapProcessorMock = $ this ->getMock (
78
+ 'Magento\Framework\Reflection\MethodsMap ' ,
79
+ [],
71
80
[],
72
81
'' ,
73
82
false );
@@ -80,7 +89,8 @@ protected function setUp()
80
89
$ this ->_authorizationMock ,
81
90
$ this ->_dataObjectConverter ,
82
91
$ this ->_serviceInputProcessorMock ,
83
- $ this ->_dataObjectProcessorMock
92
+ $ this ->_dataObjectProcessorMock ,
93
+ $ this ->_methodsMapProcessorMock
84
94
);
85
95
parent ::setUp ();
86
96
}
@@ -128,10 +138,6 @@ public function testCall()
128
138
->method ('process ' )
129
139
->will ($ this ->returnArgument (2 ));
130
140
131
- $ this ->_dataObjectProcessorMock ->expects ($ this ->any ())->method ('getMethodReturnType ' )
132
- ->with ($ className , $ methodName )
133
- ->will ($ this ->returnValue ('string ' ));
134
-
135
141
/** Execute SUT. */
136
142
$ this ->assertEquals (
137
143
['result ' => $ serviceResponse ],
0 commit comments