10
10
use Magento \CloudPatches \Command \Process \Action \ReviewAppliedAction ;
11
11
use Magento \CloudPatches \Command \Process \Renderer ;
12
12
use Magento \CloudPatches \Command \Process \ShowStatus ;
13
+ use Magento \CloudPatches \Composer \MagentoVersion ;
13
14
use Magento \CloudPatches \Console \QuestionFactory ;
14
15
use Magento \CloudPatches \Patch \Aggregator ;
15
16
use Magento \CloudPatches \Patch \Data \AggregatedPatch ;
@@ -88,6 +89,9 @@ protected function setUp(): void
88
89
$ this ->renderer = $ this ->createMock (Renderer::class);
89
90
$ this ->questionHelper = $ this ->createMock (QuestionHelper::class);
90
91
$ this ->questionFactory = $ this ->createMock (QuestionFactory::class);
92
+ /** @var MagentoVersion|MockObject $magentoVersion */
93
+ $ magentoVersion = $ this ->createMock (MagentoVersion::class);
94
+
91
95
92
96
$ this ->manager = new ShowStatus (
93
97
$ this ->aggregator ,
@@ -97,7 +101,8 @@ protected function setUp(): void
97
101
$ this ->reviewAppliedAction ,
98
102
$ this ->renderer ,
99
103
$ this ->questionHelper ,
100
- $ this ->questionFactory
104
+ $ this ->questionFactory ,
105
+ $ magentoVersion
101
106
);
102
107
}
103
108
@@ -147,7 +152,7 @@ public function testShowStatus()
147
152
->willReturn ([$ patch1 , $ patch2 , $ patch3 , $ patch4 , $ patch5 ]);
148
153
149
154
// Show warning message about patch deprecation
150
- $ outputMock ->expects ($ this ->exactly (3 ))
155
+ $ outputMock ->expects ($ this ->exactly (4 ))
151
156
->method ('writeln ' )
152
157
->withConsecutive (
153
158
[$ this ->anything ()],
0 commit comments