File tree 1 file changed +1
-15
lines changed
app/code/Magento/Cms/Test/Unit/Model
1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -263,22 +263,8 @@ public function testGetList()
263
263
->willReturnSelf ();
264
264
$ this ->blockSearchResult ->expects ($ this ->once ())
265
265
->method ('setItems ' )
266
- ->with ([' someData ' ])
266
+ ->with ([$ this -> block ])
267
267
->willReturnSelf ();
268
-
269
- $ this ->block ->expects ($ this ->once ())
270
- ->method ('getData ' )
271
- ->willReturn (['data ' ]);
272
-
273
- $ this ->dataHelper ->expects ($ this ->once ())
274
- ->method ('populateWithArray ' )
275
- ->with ($ this ->blockData , ['data ' ], \Magento \Cms \Api \Data \BlockInterface::class);
276
-
277
- $ this ->dataObjectProcessor ->expects ($ this ->once ())
278
- ->method ('buildOutputDataArray ' )
279
- ->with ($ this ->blockData , \Magento \Cms \Api \Data \BlockInterface::class)
280
- ->willReturn ('someData ' );
281
-
282
268
$ this ->assertEquals ($ this ->blockSearchResult , $ this ->repository ->getList ($ criteria ));
283
269
}
284
270
}
You can’t perform that action at this time.
0 commit comments