Skip to content

Commit bc7b241

Browse files
author
Mykola Palamar
committed
MAGETWO-70869: Console errors after turning on CSS merging/minification
1 parent 4de3aa6 commit bc7b241

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,17 @@ public function testEnableProductionMode()
114114
];
115115
$this->writerMock->expects($this->once())
116116
->method("saveConfig")
117-
->willReturnCallback(function($data) use (&$dataStorage){
117+
->willReturnCallback(function ($data) use (&$dataStorage) {
118118
$dataStorage = $data;
119119
});
120120
$this->readerMock->expects($this->any())
121121
->method('load')
122-
->willReturnCallback(function() use (&$dataStorage){
122+
->willReturnCallback(function () use (&$dataStorage) {
123123
return $dataStorage[ConfigFilePool::APP_ENV];
124124
});
125125
$this->filesystemMock->expects($this->once())
126126
->method("regenerateStatic")
127-
->willReturnCallback(function() use (&$modeModel, &$mode){
127+
->willReturnCallback(function () use (&$modeModel, &$mode) {
128128
$mode = $modeModel->getMode();
129129
});
130130
$this->model->enableProductionMode();
@@ -140,7 +140,6 @@ public function testEnableProductionMode()
140140
public function testEnableDeveloperModeOnFail()
141141
{
142142
$mode = State::MODE_DEVELOPER;
143-
$modeModel = $this->model;
144143
$dataStorage = [
145144
ConfigFilePool::APP_ENV => [
146145
State::PARAM_MODE => State::MODE_DEVELOPER,
@@ -152,12 +151,12 @@ public function testEnableDeveloperModeOnFail()
152151
[$this->equalTo([ConfigFilePool::APP_ENV => [State::PARAM_MODE => State::MODE_PRODUCTION]])],
153152
[$this->equalTo([ConfigFilePool::APP_ENV => [State::PARAM_MODE => State::MODE_DEVELOPER]])]
154153
)
155-
->willReturnCallback(function($data) use (&$dataStorage){
154+
->willReturnCallback(function ($data) use (&$dataStorage) {
156155
$dataStorage = $data;
157156
});
158157
$this->readerMock->expects($this->any())
159158
->method('load')
160-
->willReturnCallback(function() use (&$dataStorage){
159+
->willReturnCallback(function () use (&$dataStorage) {
161160
return $dataStorage[ConfigFilePool::APP_ENV];
162161
});
163162
$this->filesystemMock->expects($this->once())

0 commit comments

Comments
 (0)