Skip to content

Commit 7a4190a

Browse files
author
Oleksandr Iegorov
committed
MAGETWO-54934: Output meaningful error message to the CLI during static content deploy
1 parent d3f1fa3 commit 7a4190a

File tree

1 file changed

+1
-7
lines changed
  • lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Adapter/Less

1 file changed

+1
-7
lines changed

lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Adapter/Less/ProcessorTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected function setUp()
8181
* Test for processContent method (exception)
8282
*
8383
* @expectedException \Magento\Framework\View\Asset\ContentProcessorException
84-
* @expectedExceptionMessageRegExp (Compilation from source:.*Test exception)
84+
* @expectedExceptionMessageRegExp (Test exception)
8585
*/
8686
public function testProcessContentException()
8787
{
@@ -96,12 +96,6 @@ public function testProcessContentException()
9696
->with($assetMock)
9797
->willThrowException(new \Exception(self::ERROR_MESSAGE));
9898

99-
$this->loggerMock->expects(self::once())
100-
->method('critical')
101-
->with(
102-
PHP_EOL . Processor::ERROR_MESSAGE_PREFIX . PHP_EOL . self::ASSET_PATH . PHP_EOL . self::ERROR_MESSAGE
103-
);
104-
10599
$this->temporaryFileMock->expects(self::never())
106100
->method('createFile');
107101

0 commit comments

Comments
 (0)