@@ -125,9 +125,7 @@ public function testDeploy($options, $expectedContentVersion)
125
125
$ package ->expects ($ this ->exactly (3 ))->method ('getTheme ' )->willReturn ('theme ' );
126
126
$ package ->expects ($ this ->exactly (2 ))->method ('getLocale ' )->willReturn ('locale ' );
127
127
}
128
- $ packages = [
129
- 'package ' => $ package
130
- ];
128
+ $ packages = ['package ' => $ package ];
131
129
132
130
if ($ expectedContentVersion ) {
133
131
$ this ->versionStorage ->expects ($ this ->once ())->method ('save ' )->with ($ expectedContentVersion );
@@ -150,7 +148,6 @@ public function testDeploy($options, $expectedContentVersion)
150
148
->getMockForAbstractClass ();
151
149
if ($ options ['refresh-content-version-only ' ]) {
152
150
$ strategy ->expects ($ this ->never ())->method ('deploy ' );
153
- $ this ->deployStrategyFactory ->expects ($ this ->never ())->method ('create ' );
154
151
} else {
155
152
$ strategy ->expects ($ this ->once ())->method ('deploy ' )
156
153
->with ($ options )
@@ -201,18 +198,11 @@ public function testDeploy($options, $expectedContentVersion)
201
198
202
199
$ this ->objectManager ->expects ($ this ->exactly (1 ))
203
200
->method ('get ' )
204
- ->withConsecutive (
205
- [MinifyTemplates::class]
206
- )
207
- ->willReturnOnConsecutiveCalls (
208
- $ minifyTemplates
209
- );
201
+ ->withConsecutive ([MinifyTemplates::class])
202
+ ->willReturnOnConsecutiveCalls ($ minifyTemplates );
210
203
}
211
204
212
- $ this ->assertEquals (
213
- null ,
214
- $ this ->service ->deploy ($ options )
215
- );
205
+ $ this ->assertEquals (null , $ this ->service ->deploy ($ options ));
216
206
}
217
207
218
208
public function deployDataProvider ()
0 commit comments