Skip to content

Commit f5809ce

Browse files
author
Karpenko, Oleksandr
committed
MAGETWO-69515: Static files are deployed too slow for multiple locales
1 parent 778dcac commit f5809ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Deploy/Test/Unit/Process/QueueTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ public function testAdd()
113113
public function testProcess()
114114
{
115115
$package = $this->getMock(Package::class, [], [], '', false);
116-
$package->expects($this->any())->method('getState')->willReturn(1);
117-
$package->expects($this->once())->method('getParent')->willReturn(null);
116+
$package->expects($this->any())->method('getState')->willReturn(0);
117+
$package->expects($this->exactly(2))->method('getParent')->willReturn(true);
118118
$package->expects($this->any())->method('getArea')->willReturn('area');
119119
$package->expects($this->any())->method('getPath')->willReturn('path');
120120
$package->expects($this->any())->method('getFiles')->willReturn([]);

app/code/Magento/Deploy/Test/Unit/Service/DeployStaticContentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function testDeploy($options, $expectedContentVersion)
117117
$package->expects($this->exactly(1))->method('isVirtual')->willReturn(false);
118118
$package->expects($this->exactly(3))->method('getArea')->willReturn('area');
119119
$package->expects($this->exactly(3))->method('getTheme')->willReturn('theme');
120-
$package->expects($this->exactly(2))->method('getLocale')->willReturn('locale');
120+
$package->expects($this->exactly(3))->method('getLocale')->willReturn('locale');
121121

122122
$packages = [
123123
'package' => $package

0 commit comments

Comments
 (0)