Skip to content

Commit cd1b8c1

Browse files
committed
ACP2E-682: [Magento Cloud] - Add to cart button translation reverts back to English after clicking
- Fixed the static and unit test error.
1 parent 1a08ff0 commit cd1b8c1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/code/Magento/Translation/Test/Unit/Model/Js/PreProcessorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function testProcess()
117117
->willReturn($area);
118118
$chain->expects($this->once())
119119
->method('getContent')
120-
->willReturnMap([$this->translateMock]);
120+
->willReturn('$t("Add to Cart")');
121121
$this->configMock->expects($this->any())
122122
->method('getPatterns')
123123
->willReturn(new \ArrayIterator(
@@ -128,7 +128,7 @@ public function testProcess()
128128
));
129129
$chain->expects($this->once())
130130
->method('setContent')
131-
->willReturn($this->translateMock);
131+
->willReturn('In Winkelwagen');
132132
$this->model->process($chain);
133133
}
134134
}

app/code/Magento/Translation/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"magento/module-backend": "*",
1111
"magento/module-developer": "*",
1212
"magento/module-store": "*",
13-
"magento/module-theme": "*"
13+
"magento/module-theme": "*",
14+
"magento/module-deploy": "*"
1415
},
1516
"suggest": {
1617
"magento/module-deploy": "*"

0 commit comments

Comments
 (0)