File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
lib/internal/Magento/Framework/View/Test/Unit Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,16 @@ class LayoutTest extends \PHPUnit_Framework_TestCase
86
86
*/
87
87
protected $ generatorContextFactoryMock ;
88
88
89
+ /**
90
+ * @var \Magento\Framework\App\State|\PHPUnit_Framework_MockObject_MockObject
91
+ */
92
+ protected $ appStateMock ;
93
+
94
+ /**
95
+ * @var \Psr\Log\LoggerInterface|\PHPUnit_Framework_MockObject_MockObject
96
+ */
97
+ protected $ loggerMock ;
98
+
89
99
protected function setUp ()
90
100
{
91
101
$ this ->structureMock = $ this ->getMockBuilder ('Magento\Framework\View\Layout\Data\Structure ' )
@@ -136,8 +146,14 @@ protected function setUp()
136
146
->getMock ();
137
147
$ this ->generatorContextFactoryMock = $ this ->getMockBuilder (
138
148
'Magento\Framework\View\Layout\Generator\ContextFactory '
139
- )->disableOriginalConstructor ()
140
- ->getMock ();
149
+ )
150
+ ->disableOriginalConstructor ()
151
+ ->getMock ();
152
+ $ this ->appStateMock = $ this ->getMockBuilder ('Magento\Framework\App\State ' )
153
+ ->disableOriginalConstructor ()
154
+ ->getMock ();
155
+ $ this ->loggerMock = $ this ->getMockBuilder ('Psr\Log\LoggerInterface ' )
156
+ ->getMock ();
141
157
142
158
$ this ->model = new \Magento \Framework \View \Layout (
143
159
$ this ->processorFactoryMock ,
@@ -150,6 +166,8 @@ protected function setUp()
150
166
$ this ->cacheMock ,
151
167
$ this ->readerContextFactoryMock ,
152
168
$ this ->generatorContextFactoryMock ,
169
+ $ this ->appStateMock ,
170
+ $ this ->loggerMock ,
153
171
true
154
172
);
155
173
}
You can’t perform that action at this time.
0 commit comments