File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
app/code/Magento/Config/Test/Unit/Console/Command Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,11 @@ public function testExecute()
114
114
->willReturnCallback (function ($ function ) {
115
115
return $ function ();
116
116
});
117
+ $ this ->localeEmulatorMock ->expects ($ this ->once ())
118
+ ->method ('emulate ' )
119
+ ->willReturnCallback (function ($ callback ) {
120
+ return $ callback ();
121
+ });
117
122
118
123
$ tester = new CommandTester ($ this ->command );
119
124
$ tester ->execute ([
@@ -185,12 +190,6 @@ public function testExecuteWithException()
185
190
->method ('process ' )
186
191
->willThrowException (new ValidatorException (__ ('The "test/test/test" path does not exists ' )));
187
192
188
- $ this ->localeEmulatorMock ->expects ($ this ->once ())
189
- ->method ('emulate ' )
190
- ->willReturnCallback (function ($ function ) {
191
- return $ function ();
192
- });
193
-
194
193
$ tester = new CommandTester ($ this ->command );
195
194
$ tester ->execute ([
196
195
ConfigSetCommand::ARG_PATH => 'test/test/test ' ,
Original file line number Diff line number Diff line change @@ -152,6 +152,11 @@ public function testExecute(): void
152
152
->willReturnCallback (function ($ function ) {
153
153
return $ function ();
154
154
});
155
+ $ this ->localeEmulatorMock ->expects ($ this ->once ())
156
+ ->method ('emulate ' )
157
+ ->willReturnCallback (function ($ callback ) {
158
+ return $ callback ();
159
+ });
155
160
156
161
$ tester = $ this ->getConfigShowCommandTester (
157
162
self ::CONFIG_PATH ,
You can’t perform that action at this time.
0 commit comments