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