Skip to content

Commit 8d7c500

Browse files
author
vpaladiychuk
committed
MAGETWO-34988: Implement exception handling in dispatch() method
1 parent 3b0ec66 commit 8d7c500

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/App/Test/Unit/FrontControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ public function testDispatchedLocalizedException()
191191
$controllerInstance->expects($this->any())
192192
->method('dispatch')
193193
->with($this->request)
194-
->willThrowException(new \Magento\Framework\Exception\LocalizedException(
195-
new \Magento\Framework\Phrase($message))
194+
->willThrowException(
195+
new \Magento\Framework\Exception\LocalizedException(new \Magento\Framework\Phrase($message))
196196
);
197197
$controllerInstance->expects($this->once())->method('getDefaultRedirect')->willReturn($this->resultRedirect);
198198

0 commit comments

Comments
 (0)