Skip to content

Commit 4a767c2

Browse files
author
Dmytro Poperechnyy
committed
MAGETWO-34174: CI builds stabilization
- Passed non-empty string to __() function in ShellTest;
1 parent d4e71fb commit 4a767c2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

dev/tests/unit/testsuite/Magento/Indexer/Model/ShellTest.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,20 @@ public function testRunException($args)
175175
}
176176
if ($args == 'reindexall') {
177177
$indexerMock->expects($this->any())->method('reindexAll')->will(
178-
$this->throwException(new \Magento\Framework\Exception\LocalizedException(__('')))
178+
$this->throwException(
179+
new \Magento\Framework\Exception\LocalizedException(
180+
__('Something went wrong during reindexing all.')
181+
)
182+
)
179183
);
180184
}
181185
if ($args == '--mode-schedule') {
182186
$indexerMock->expects($this->any())->method('turnViewOn')->will(
183-
$this->throwException(new \Magento\Framework\Exception\LocalizedException(__('')))
187+
$this->throwException(
188+
new \Magento\Framework\Exception\LocalizedException(
189+
__('Something went wrong during turning view on.')
190+
)
191+
)
184192
);
185193
}
186194
if ($args == '--reindex=price') {

0 commit comments

Comments
 (0)