File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Braintree/Test/Unit/Controller/Paypal Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ class PlaceOrderTest extends \PHPUnit_Framework_TestCase
60
60
*/
61
61
private $ placeOrder ;
62
62
63
+ /**
64
+ * @var \PHPUnit_Framework_MockObject_MockObject
65
+ */
66
+ private $ loggerMock ;
67
+
63
68
protected function setUp ()
64
69
{
65
70
/** @var Context|\PHPUnit_Framework_MockObject_MockObject $contextMock */
@@ -94,11 +99,15 @@ protected function setUp()
94
99
->method ('getMessageManager ' )
95
100
->willReturn ($ this ->messageManagerMock );
96
101
102
+ $ this ->loggerMock = $ this ->getMockBuilder (\Psr \Log \LoggerInterface::class)
103
+ ->disableOriginalConstructor ()
104
+ ->getMock ();
97
105
$ this ->placeOrder = new PlaceOrder (
98
106
$ contextMock ,
99
107
$ this ->configMock ,
100
108
$ this ->checkoutSessionMock ,
101
- $ this ->orderPlaceMock
109
+ $ this ->orderPlaceMock ,
110
+ $ this ->loggerMock
102
111
);
103
112
}
104
113
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ class Adapter implements MethodInterface
101
101
* @param ValidatorPoolInterface|null $validatorPool
102
102
* @param CommandManagerInterface|null $commandExecutor
103
103
* @param LoggerInterface|null $logger
104
+ * @SuppressWarnings(PHPMD.ExcessiveParameterList)
104
105
*/
105
106
public function __construct (
106
107
ManagerInterface $ eventManager ,
You can’t perform that action at this time.
0 commit comments