Skip to content

Commit

Permalink
magento#21098 Updated Deprecated functions call
Browse files Browse the repository at this point in the history
Fix unit test failure
  • Loading branch information
ihor-sviziev authored and mage2pratik committed Feb 15, 2019
1 parent d65ac4d commit 803ad78
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ public function testExecuteWithoutQuantityArrayAndOutOfStock()
->willThrowException(new ProductException(__('Test Phrase')));

$this->messageManagerMock->expects($this->once())
->method('addError')
->method('addErrorMessage')
->with('This product(s) is out of stock.', null)
->willReturnSelf();

Expand Down Expand Up @@ -901,7 +901,7 @@ public function testExecuteWithoutQuantityArrayAndConfigurable()
->willThrowException(new \Magento\Framework\Exception\LocalizedException(__('message')));

$this->messageManagerMock->expects($this->once())
->method('addNotice')
->method('addNoticeMessage')
->with('message', null)
->willReturnSelf();

Expand Down Expand Up @@ -1073,7 +1073,7 @@ public function testExecuteWithEditQuantity()
->willThrowException(new \Magento\Framework\Exception\LocalizedException(__('message')));

$this->messageManagerMock->expects($this->once())
->method('addNotice')
->method('addNoticeMessage')
->with('message', null)
->willReturnSelf();

Expand Down

0 comments on commit 803ad78

Please sign in to comment.