Skip to content

Commit 6297655

Browse files
author
Dmytro Vilchynskyi
committed
MAGETWO-70571: There is no possibility to activate DEBUG logging in production mode
- update after merging
1 parent 2d09bd0 commit 6297655

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/code/Magento/Deploy/Test/Unit/Model/ModeTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ public function testEnableProductionMode()
154154
State::PARAM_MODE => State::MODE_DEVELOPER,
155155
],
156156
];
157+
$this->configProvider->expects($this->any())
158+
->method('getConfigs')
159+
->willReturn([]);
157160
$this->writerMock->expects($this->once())
158161
->method("saveConfig")
159162
->willReturnCallback(function ($data) use (&$dataStorage) {
@@ -187,6 +190,12 @@ public function testEnableDeveloperModeOnFail()
187190
State::PARAM_MODE => State::MODE_DEVELOPER,
188191
],
189192
];
193+
$this->readerMock->expects($this->any())
194+
->method('load')
195+
->willReturn([State::PARAM_MODE => State::MODE_DEVELOPER]);
196+
$this->configProvider->expects($this->any())
197+
->method('getConfigs')
198+
->willReturn([]);
190199
$this->writerMock->expects($this->exactly(2))
191200
->method("saveConfig")
192201
->withConsecutive(

0 commit comments

Comments
 (0)