@@ -134,19 +134,21 @@ public function testExecuteWithKeysAndPrefix(): void
134
134
->willReturn (true );
135
135
$ this ->configMock ->method ('getDriver ' )
136
136
->willReturn ('adapter ' );
137
+ $ this ->configMock ->method ('getPrefix ' )
138
+ ->willReturn ('test_prefix ' );
137
139
$ this ->configMock ->method ('getConfig ' )
138
140
->willReturn ([
139
141
'bucket ' => 'test_bucket ' ,
140
142
'region ' => 'test_region ' ,
141
143
'key ' => 'test_key ' ,
142
144
'secret ' => 'test_secret ' ,
143
- 'prefix ' => 'test_prefix '
144
145
]);
145
146
$ this ->magentoShellMock ->expects (self ::once ())
146
147
->method ('execute ' )
147
148
->with (
148
149
'setup:config:set --remote-storage-driver=adapter '
149
150
. ' --remote-storage-bucket=test_bucket --remote-storage-region=test_region '
151
+ . ' --remote-storage-prefix=test_prefix '
150
152
. ' --remote-storage-access-key=test_key --remote-storage-secret-key=test_secret -n '
151
153
);
152
154
$ this ->loggerMock ->expects (self ::once ())
@@ -193,8 +195,7 @@ public function testExecuteWithException(): void
193
195
'bucket ' => 'test_bucket ' ,
194
196
'region ' => 'test_region ' ,
195
197
'key ' => 'test_key ' ,
196
- 'secret ' => 'test_secret ' ,
197
- 'prefix ' => 'test_prefix '
198
+ 'secret ' => 'test_secret '
198
199
]);
199
200
$ this ->magentoShellMock ->expects (self ::once ())
200
201
->method ('execute ' )
@@ -223,7 +224,6 @@ public function testExecuteWithMissingOptions(): void
223
224
->willReturn ([
224
225
'key ' => 'test_key ' ,
225
226
'secret ' => 'test_secret ' ,
226
- 'prefix ' => 'test_prefix '
227
227
]);
228
228
229
229
$ this ->step ->execute ();
0 commit comments