Skip to content

Commit 7743000

Browse files
author
Viktor Paladiychuk
committed
MAGETWO-62660: [GitHub] Overly aggressive performance optimizations of the static content deployment #7862
1 parent de49078 commit 7743000

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

app/code/Magento/Deploy/Model/Deploy/LocaleQuickDeploy.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ public function deploy($area, $themePath, $locale)
138138

139139
if ($jsDictionaryEnabled) {
140140
$this->getDeploy(
141-
DeployStrategyFactory::DEPLOY_STRATEGY_JS_DICTIONARY,
142-
[
143-
'output' => $this->output,
144-
'translationJsConfig' => $this->translationJsConfig
145-
]
146-
)
147-
->deploy($area, $themePath, $locale);
141+
DeployStrategyFactory::DEPLOY_STRATEGY_JS_DICTIONARY,
142+
[
143+
'output' => $this->output,
144+
'translationJsConfig' => $this->translationJsConfig
145+
]
146+
)
147+
->deploy($area, $themePath, $locale);
148148
$processedFiles++;
149149
}
150150

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
namespace Magento\Deploy\Test\Unit\Model\Deploy;
87

98
use Symfony\Component\Console\Output\OutputInterface;

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,11 @@ protected function setUp()
4848
$this->outputMock = $this->getMockBuilder(OutputInterface::class)
4949
->setMethods(['writeln', 'isVeryVerbose'])
5050
->getMockForAbstractClass();
51-
5251
$this->staticDirectoryMock = $this->getMockBuilder(WriteInterface::class)
5352
->setMethods(['createSymlink', 'getAbsolutePath', 'getRelativePath', 'copyFile', 'readRecursively'])
5453
->getMockForAbstractClass();
55-
5654
$this->translationJsConfig = $this->getMock(TranslationJsConfig::class, [], [], '', false);
57-
5855
$this->deployStrategyFactory = $this->getMock(DeployStrategyFactory::class, [], [], '', false);
59-
6056
$this->jsDictionaryDeploy = $this->getMock(JsDictionaryDeploy::class, [], [], '', false);
6157
}
6258

0 commit comments

Comments
 (0)