@@ -82,25 +82,32 @@ public function testExecute()
82
82
],
83
83
],
84
84
[
85
-
86
85
'magento_root/docker/global.php ' ,
87
86
[
88
87
'MAGENTO_RUN_MODE ' => 'production ' ,
88
+ 'DEBUG ' => false ,
89
+ 'ENABLE_SENDMAIL ' => true ,
90
+ 'PHP_ENABLE_XDEBUG ' => true ,
89
91
],
90
92
],
91
93
]);
92
94
$ this ->fileMock ->expects ($ this ->exactly (2 ))
93
95
->method ('filePutContents ' )
94
- ->willReturnMap ([
96
+ ->withConsecutive (
95
97
[
96
98
'magento_root/docker/config.env ' ,
97
- $ this ->contains ('MAGENTO_CLOUD_VARIABLES=eyJBRE1JTl9FTUFJT ' ),
99
+ $ this ->stringStartsWith ('MAGENTO_CLOUD_VARIABLES=eyJBRE1JTl9FTUFJTCI6InRlc3Qy ' ),
98
100
],
99
101
[
100
102
'magento_root/docker/global.env ' ,
101
- 'MAGENTO_RUN_MODE=InByb2R1Y3Rpb24i ' ,
102
- ],
103
- ]);
103
+ implode (PHP_EOL , [
104
+ 'MAGENTO_RUN_MODE=production ' ,
105
+ 'DEBUG=false ' ,
106
+ 'ENABLE_SENDMAIL=true ' ,
107
+ 'PHP_ENABLE_XDEBUG=true ' ,
108
+ ]) . PHP_EOL ,
109
+ ]
110
+ );
104
111
105
112
$ this ->command ->execute ($ inputMock , $ outputMock );
106
113
}
@@ -144,21 +151,27 @@ public function testExecuteUsingDist()
144
151
'magento_root/docker/global.php.dist ' ,
145
152
[
146
153
'MAGENTO_RUN_MODE ' => 'production ' ,
154
+ 'DEBUG ' => false ,
155
+ 'PHP_ENABLE_XDEBUG ' => true ,
147
156
],
148
157
],
149
158
]);
150
159
$ this ->fileMock ->expects ($ this ->exactly (2 ))
151
160
->method ('filePutContents ' )
152
- ->willReturnMap ([
161
+ ->withConsecutive (
153
162
[
154
163
'magento_root/docker/config.env ' ,
155
- $ this ->contains ('MAGENTO_CLOUD_VARIABLES=eyJBRE1JTl9FTUFJT ' ),
164
+ $ this ->stringStartsWith ('MAGENTO_CLOUD_VARIABLES=eyJBRE1JTl9FTUFJT ' ),
156
165
],
157
166
[
158
167
'magento_root/docker/global.env ' ,
159
- 'MAGENTO_RUN_MODE=InByb2R1Y3Rpb24i ' ,
160
- ],
161
- ]);
168
+ implode (PHP_EOL , [
169
+ 'MAGENTO_RUN_MODE=production ' ,
170
+ 'DEBUG=false ' ,
171
+ 'PHP_ENABLE_XDEBUG=true ' ,
172
+ ]) . PHP_EOL ,
173
+ ]
174
+ );
162
175
163
176
$ this ->command ->execute ($ inputMock , $ outputMock );
164
177
}
@@ -202,21 +215,27 @@ public function testExecuteUsingDistWithClean()
202
215
'magento_root/docker/global.php.dist ' ,
203
216
[
204
217
'MAGENTO_RUN_MODE ' => 'production ' ,
218
+ 'DEBUG ' => false ,
219
+ 'PHP_ENABLE_XDEBUG ' => true ,
205
220
],
206
221
],
207
222
]);
208
223
$ this ->fileMock ->expects ($ this ->exactly (2 ))
209
224
->method ('filePutContents ' )
210
- ->willReturnMap ([
225
+ ->withConsecutive (
211
226
[
212
227
'magento_root/docker/config.env ' ,
213
- $ this ->contains ('MAGENTO_CLOUD_VARIABLES=eyJBRE1JTl9FTUFJT ' ),
228
+ $ this ->stringStartsWith ('MAGENTO_CLOUD_VARIABLES=eyJBRE1JTl9FTUFJT ' ),
214
229
],
215
230
[
216
231
'magento_root/docker/global.env ' ,
217
- 'MAGENTO_RUN_MODE=InByb2R1Y3Rpb24i ' ,
218
- ],
219
- ]);
232
+ implode (PHP_EOL , [
233
+ 'MAGENTO_RUN_MODE=production ' ,
234
+ 'DEBUG=false ' ,
235
+ 'PHP_ENABLE_XDEBUG=true ' ,
236
+ ]) . PHP_EOL ,
237
+ ]
238
+ );
220
239
$ this ->fileMock ->expects ($ this ->exactly (2 ))
221
240
->method ('deleteFile ' )
222
241
->withConsecutive (
0 commit comments