File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Test/Unit/Console/Command Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ private function getPendingCount(Mview\ViewInterface $view)
103
103
104
104
$ state = $ view ->getState ();
105
105
106
- $ pendingCount = $ changelog ->getListSize ($ state ->getVersionId (), $ currentVersionId );
106
+ $ pendingCount = count ( $ changelog ->getList ($ state ->getVersionId (), $ currentVersionId) );
107
107
108
108
$ pendingString = "<error> $ pendingCount</error> " ;
109
109
if ($ pendingCount <= 0 ) {
Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ class IndexerStatusCommandTest extends AbstractIndexerCommandCommonSetup
27
27
*/
28
28
private function attachViewToIndexerMock ($ indexerMock , array $ data )
29
29
{
30
- /** @var \Magento\Framework\Mview\View\Changelog|\PHPUnit_Framework_MockObject_MockObject $stub */
30
+ /** @var \Magento\Framework\Mview\View\Changelog|\PHPUnit_Framework_MockObject_MockObject $changelog */
31
31
$ changelog = $ this ->getMockBuilder (\Magento \Framework \Mview \View \Changelog::class)
32
32
->disableOriginalConstructor ()
33
33
->getMock ();
34
34
35
35
$ changelog ->expects ($ this ->any ())
36
- ->method ('getListSize ' )
37
- ->willReturn ($ data ['view ' ]['changelog ' ]['list_size ' ]);
36
+ ->method ('getList ' )
37
+ ->willReturn (range ( 0 , $ data ['view ' ]['changelog ' ]['list_size ' ]- 1 ) );
38
38
39
39
/** @var \Magento\Indexer\Model\Mview\View\State|\PHPUnit_Framework_MockObject_MockObject $stateMock */
40
40
$ stateMock = $ this ->getMockBuilder (\Magento \Indexer \Model \Mview \View \State::class)
You can’t perform that action at this time.
0 commit comments