File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
app/code/Magento/Braintree/Test/Unit/Controller/Paypal Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Braintree \Test \Unit \Controller \Paypal ;
8
8
9
+ use Magento \Payment \Model \Method \Logger ;
9
10
use Magento \Quote \Model \Quote ;
10
11
use Magento \Framework \View \Layout ;
11
12
use Magento \Checkout \Model \Session ;
@@ -65,6 +66,11 @@ class ReviewTest extends \PHPUnit\Framework\TestCase
65
66
*/
66
67
private $ review ;
67
68
69
+ /**
70
+ * @var Logger|\PHPUnit_Framework_MockObject_MockObject
71
+ */
72
+ private $ loggerMock ;
73
+
68
74
protected function setUp ()
69
75
{
70
76
/** @var Context|\PHPUnit_Framework_MockObject_MockObject $contextMock */
@@ -88,6 +94,9 @@ protected function setUp()
88
94
->getMock ();
89
95
$ this ->messageManagerMock = $ this ->getMockBuilder (ManagerInterface::class)
90
96
->getMockForAbstractClass ();
97
+ $ this ->loggerMock = $ this ->getMockBuilder (Logger::class)
98
+ ->disableOriginalConstructor ()
99
+ ->getMock ();
91
100
92
101
$ contextMock ->expects (self ::once ())
93
102
->method ('getRequest ' )
@@ -103,7 +112,8 @@ protected function setUp()
103
112
$ contextMock ,
104
113
$ this ->configMock ,
105
114
$ this ->checkoutSessionMock ,
106
- $ this ->quoteUpdaterMock
115
+ $ this ->quoteUpdaterMock ,
116
+ $ this ->loggerMock
107
117
);
108
118
}
109
119
You can’t perform that action at this time.
0 commit comments