Skip to content

Commit a55876f

Browse files
committed
MAGETWO-70738: Impossible to implement plugin that uses message for \Magento\Framework\Mail\TransportInterface
- fixed tests
1 parent 2f23925 commit a55876f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

dev/tests/integration/testsuite/Magento/Customer/Controller/Adminhtml/IndexTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,7 @@ protected function prepareEmailMock($occurrenceNumber, $templateId, $sender, $cu
762762
$storeId = $customer->getStoreId();
763763
$name = $this->customerViewHelper->getCustomerName($customer);
764764
$transportMock = $this->getMock(
765-
\Magento\Framework\Mail\TransportInterface::class,
766-
['sendMessage']
765+
\Magento\Framework\Mail\TransportInterface::class
767766
);
768767
$transportMock->expects($this->exactly($occurrenceNumber))
769768
->method('sendMessage');

dev/tests/integration/testsuite/Magento/User/Controller/Adminhtml/AuthTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,7 @@ public function testResetPasswordPostActionWithInvalidPassword()
268268
protected function prepareEmailMock($occurrenceNumber, $templateId, $sender)
269269
{
270270
$transportMock = $this->getMock(
271-
\Magento\Framework\Mail\TransportInterface::class,
272-
['sendMessage']
271+
\Magento\Framework\Mail\TransportInterface::class
273272
);
274273
$transportMock->expects($this->exactly($occurrenceNumber))
275274
->method('sendMessage');

0 commit comments

Comments
 (0)