Skip to content

Commit fdd98b4

Browse files
author
Robert He
committed
MAGETWO-69137: upgrading Magento2 Project PHPUnit version to latest
- changed unit tests to support PHPUnit 6.2
1 parent ff9e9d4 commit fdd98b4

File tree

1 file changed

+3
-4
lines changed
  • dev/tests/integration/testsuite/Magento/User/Controller/Adminhtml

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,9 @@ public function testResetPasswordPostActionWithInvalidPassword()
267267
*/
268268
protected function prepareEmailMock($occurrenceNumber, $templateId, $sender)
269269
{
270-
$transportMock = $this->createPartialMock(
271-
\Magento\Framework\Mail\TransportInterface::class,
272-
['sendMessage']
273-
);
270+
$transportMock = $this->getMockBuilder(\Magento\Framework\Mail\TransportInterface::class)
271+
->setMethods(['sendMessage'])
272+
->getMockForAbstractClass();
274273
$transportMock->expects($this->exactly($occurrenceNumber))
275274
->method('sendMessage');
276275
$transportBuilderMock = $this->getMockBuilder(\Magento\Framework\Mail\Template\TransportBuilder::class)

0 commit comments

Comments
 (0)