File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
dev/tests/unit/testsuite/Magento/Framework/Image/Adapter Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ class AbstractTest extends \PHPUnit_Framework_TestCase
25
25
*/
26
26
protected $ filesystemMock ;
27
27
28
+ /**
29
+ * @var \PHPUnit_Framework_MockObject_MockObject |\Psr\Log\LoggerInterface
30
+ */
31
+ protected $ loggerMock ;
32
+
28
33
protected function setUp ()
29
34
{
30
35
$ this ->directoryWriteMock = $ this ->getMock (
@@ -48,10 +53,11 @@ protected function setUp()
48
53
)->will (
49
54
$ this ->returnValue ($ this ->directoryWriteMock )
50
55
);
56
+ $ this ->loggerMock = $ this ->getMockBuilder ( 'Psr\Log\LoggerInterface ' )->getMock ();
51
57
52
58
$ this ->_model = $ this ->getMockForAbstractClass (
53
59
'Magento\Framework\Image\Adapter\AbstractAdapter ' ,
54
- [$ this ->filesystemMock ]
60
+ [$ this ->filesystemMock , $ this -> loggerMock ]
55
61
);
56
62
}
57
63
@@ -60,6 +66,7 @@ protected function tearDown()
60
66
$ this ->directoryWriteMock = null ;
61
67
$ this ->_model = null ;
62
68
$ this ->filesystemMock = null ;
69
+ $ this ->loggerMock = null ;
63
70
}
64
71
65
72
/**
You can’t perform that action at this time.
0 commit comments