1818use Magento \Framework \Mview \View \CollectionInterface ;
1919use Magento \Framework \Mview \View \StateInterface ;
2020use Magento \Framework \Mview \View \Subscription ;
21+ use Magento \Framework \Mview \View \SubscriptionStatementPostprocessorInterface ;
2122use Magento \Framework \Mview \ViewInterface ;
2223use PHPUnit \Framework \MockObject \MockObject ;
2324use PHPUnit \Framework \TestCase ;
@@ -127,6 +128,9 @@ protected function setUp(): void
127128 ]
128129 ]
129130 ]);
131+ $ statementPostprocessorMock = $ this ->createMock (SubscriptionStatementPostprocessorInterface::class);
132+ $ statementPostprocessorMock ->method ('process ' )
133+ ->willReturnArgument (2 );
130134 $ this ->model = new Subscription (
131135 $ this ->resourceMock ,
132136 $ this ->triggerFactoryMock ,
@@ -136,7 +140,8 @@ protected function setUp(): void
136140 'columnName ' ,
137141 [],
138142 [],
139- $ mviewConfigMock
143+ $ mviewConfigMock ,
144+ $ statementPostprocessorMock
140145 );
141146 }
142147
@@ -417,6 +422,9 @@ public function testBuildStatementIgnoredColumnSubscriptionLevel(): void
417422 ]
418423 ]
419424 ]);
425+ $ statementPostprocessorMock = $ this ->createMock (SubscriptionStatementPostprocessorInterface::class);
426+ $ statementPostprocessorMock ->method ('process ' )
427+ ->willReturnArgument (2 );
420428
421429 $ this ->connectionMock ->expects ($ this ->any ())
422430 ->method ('isTableExists ' )
@@ -464,7 +472,8 @@ public function testBuildStatementIgnoredColumnSubscriptionLevel(): void
464472 'columnName ' ,
465473 [],
466474 $ ignoredData ,
467- $ mviewConfigMock
475+ $ mviewConfigMock ,
476+ $ statementPostprocessorMock
468477 );
469478
470479 $ method = new ReflectionMethod ($ model , 'buildStatement ' );
0 commit comments