@@ -72,8 +72,8 @@ class CategoryTest extends \PHPUnit\Framework\TestCase
72
72
* @var \Magento\Catalog\Api\CategoryRepositoryInterface|\PHPUnit_Framework_MockObject_MockObject
73
73
*/
74
74
protected $ categoryRepository ;
75
-
76
- /**
75
+
76
+ /**
77
77
* @var \Magento\Framework\View\ConfigInterface|\PHPUnit_Framework_MockObject_MockObject
78
78
*/
79
79
protected $ viewConfig ;
@@ -120,7 +120,7 @@ protected function setUp()
120
120
$ this ->storeManager ->expects ($ this ->any ())->method ('getStore ' )->will ($ this ->returnValue ($ store ));
121
121
$ this ->scopeConfig = $ this ->createMock (\Magento \Framework \App \Config \ScopeConfigInterface::class);
122
122
$ this ->categoryRepository = $ this ->createMock (\Magento \Catalog \Api \CategoryRepositoryInterface::class);
123
- $ this ->viewConfig = $ this ->getMockBuilder (\Magento \Framework \View \ConfigInterface::class)
123
+ $ this ->viewConfig = $ this ->getMockBuilder (\Magento \Framework \View \ConfigInterface::class)
124
124
->getMockForAbstractClass ();
125
125
$ objectManagerHelper = new ObjectManagerHelper ($ this );
126
126
$ this ->block = $ objectManagerHelper ->getObject (
@@ -137,7 +137,7 @@ protected function setUp()
137
137
'customerSession ' => $ this ->customerSession ,
138
138
'storeManager ' => $ this ->storeManager ,
139
139
'categoryRepository ' => $ this ->categoryRepository ,
140
- 'viewConfig ' => $ this ->viewConfig ,
140
+ 'viewConfig ' => $ this ->viewConfig ,
141
141
]
142
142
);
143
143
}
@@ -152,12 +152,12 @@ public function testGetRssData()
152
152
->will ($ this ->returnValue ('http://magento.com/category-name.html ' ));
153
153
154
154
$ this ->categoryRepository ->expects ($ this ->once ())->method ('get ' )->will ($ this ->returnValue ($ category ));
155
-
156
- $ configViewMock = $ this ->getMockBuilder (\Magento \Framework \Config \View::class)
155
+
156
+ $ configViewMock = $ this ->getMockBuilder (\Magento \Framework \Config \View::class)
157
157
->disableOriginalConstructor ()
158
158
->getMock ();
159
-
160
- $ this ->viewConfig ->expects ($ this ->once ())
159
+
160
+ $ this ->viewConfig ->expects ($ this ->once ())
161
161
->method ('getViewConfig ' )
162
162
->willReturn ($ configViewMock );
163
163
0 commit comments