File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
app/code/Magento/Review/Test/Unit/Block/Adminhtml
dev/tests/static/testsuite/Magento/Test/Legacy Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,9 @@ public function testGetRssData()
81
81
],
82
82
],
83
83
];
84
- $ productModel = $ this ->createPartialMock (\Magento \Catalog \Model \ResourceModel \Product::class, [
84
+ $ productModel = $ this ->createPartialMock (
85
+ \Magento \Catalog \Model \ResourceModel \Product::class,
86
+ [
85
87
'getStoreId ' ,
86
88
'getId ' ,
87
89
'getReviewId ' ,
@@ -90,7 +92,8 @@ public function testGetRssData()
90
92
'getTitle ' ,
91
93
'getNickname ' ,
92
94
'getProductUrl '
93
- ]);
95
+ ]
96
+ );
94
97
$ storeModel = $ this ->createMock (\Magento \Store \Model \Store::class);
95
98
$ this ->storeManagerInterface ->expects ($ this ->once ())->method ('getStore ' )->will ($ this ->returnValue ($ storeModel ));
96
99
$ storeModel ->expects ($ this ->once ())->method ('getName ' )
Original file line number Diff line number Diff line change 11
11
12
12
use Magento \Framework \Component \ComponentRegistrar ;
13
13
14
+ /**
15
+ * Layout test
16
+ */
14
17
class LayoutTest extends \PHPUnit \Framework \TestCase
15
18
{
16
19
/**
@@ -85,6 +88,9 @@ class LayoutTest extends \PHPUnit\Framework\TestCase
85
88
],
86
89
];
87
90
91
+ /**
92
+ * @throws \Exception
93
+ */
88
94
public function testLayoutFile ()
89
95
{
90
96
$ invoker = new \Magento \Framework \App \Utility \AggregateInvoker ($ this );
@@ -141,6 +147,11 @@ function ($layoutFile) {
141
147
$ componentRegistrar ->getPath (ComponentRegistrar::MODULE , 'Magento_Shipping ' )
142
148
. '/view/adminhtml/layout/adminhtml_order '
143
149
)
150
+ || false !== strpos (
151
+ $ layoutFile ,
152
+ $ componentRegistrar ->getPath (ComponentRegistrar::MODULE , 'Magento_Catalog ' )
153
+ . '/view/adminhtml/layout/catalog_product_grid.xml '
154
+ )
144
155
) {
145
156
$ this ->markTestIncomplete (
146
157
"The file {$ layoutFile } has to use \\Magento \\Core \\Block \\Text \\List, \n" .
@@ -204,6 +215,9 @@ protected function _testObsoleteAttributes($layoutXml)
204
215
}
205
216
}
206
217
218
+ /**
219
+ * @throws \Exception
220
+ */
207
221
public function testActionNodeMethods ()
208
222
{
209
223
$ invoker = new \Magento \Framework \App \Utility \AggregateInvoker ($ this );
You can’t perform that action at this time.
0 commit comments