File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
dev/tests/integration/testsuite/Magento/User/Controller/Adminhtml Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -267,10 +267,9 @@ public function testResetPasswordPostActionWithInvalidPassword()
267
267
*/
268
268
protected function prepareEmailMock ($ occurrenceNumber , $ templateId , $ sender )
269
269
{
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 ();
274
273
$ transportMock ->expects ($ this ->exactly ($ occurrenceNumber ))
275
274
->method ('sendMessage ' );
276
275
$ transportBuilderMock = $ this ->getMockBuilder (\Magento \Framework \Mail \Template \TransportBuilder::class)
You can’t perform that action at this time.
0 commit comments