1010use Magento \CloudPatches \Command \Process \Action \ReviewAppliedAction ;
1111use Magento \CloudPatches \Command \Process \Renderer ;
1212use Magento \CloudPatches \Command \Process \ShowStatus ;
13+ use Magento \CloudPatches \Composer \MagentoVersion ;
1314use Magento \CloudPatches \Console \QuestionFactory ;
1415use Magento \CloudPatches \Patch \Aggregator ;
1516use Magento \CloudPatches \Patch \Data \AggregatedPatch ;
@@ -88,6 +89,9 @@ protected function setUp(): void
8889 $ this ->renderer = $ this ->createMock (Renderer::class);
8990 $ this ->questionHelper = $ this ->createMock (QuestionHelper::class);
9091 $ this ->questionFactory = $ this ->createMock (QuestionFactory::class);
92+ /** @var MagentoVersion|MockObject $magentoVersion */
93+ $ magentoVersion = $ this ->createMock (MagentoVersion::class);
94+
9195
9296 $ this ->manager = new ShowStatus (
9397 $ this ->aggregator ,
@@ -97,7 +101,8 @@ protected function setUp(): void
97101 $ this ->reviewAppliedAction ,
98102 $ this ->renderer ,
99103 $ this ->questionHelper ,
100- $ this ->questionFactory
104+ $ this ->questionFactory ,
105+ $ magentoVersion
101106 );
102107 }
103108
@@ -147,7 +152,7 @@ public function testShowStatus()
147152 ->willReturn ([$ patch1 , $ patch2 , $ patch3 , $ patch4 , $ patch5 ]);
148153
149154 // Show warning message about patch deprecation
150- $ outputMock ->expects ($ this ->exactly (3 ))
155+ $ outputMock ->expects ($ this ->exactly (4 ))
151156 ->method ('writeln ' )
152157 ->withConsecutive (
153158 [$ this ->anything ()],
0 commit comments