File tree Expand file tree Collapse file tree 4 files changed +13
-5
lines changed
app/code/Magento/Backup/Controller/Adminhtml/Index
dev/tests/unit/testsuite/Magento
Backup/Controller/Adminhtml/Index
Customer/Controller/Adminhtml/Index Expand file tree Collapse file tree 4 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ public function __construct(
38
38
\Magento \Backup \Model \BackupFactory $ backupModelFactory ,
39
39
\Magento \Framework \App \MaintenanceMode $ maintenanceMode ,
40
40
\Magento \Framework \Controller \Result \RawFactory $ resultRawFactory ,
41
- \Magento \Backend \Model \View \Result \RedirectFactory $ resultRedirectFactory ) {
41
+ \Magento \Backend \Model \View \Result \RedirectFactory $ resultRedirectFactory
42
+ ) {
42
43
parent ::__construct (
43
44
$ context ,
44
45
$ coreRegistry ,
Original file line number Diff line number Diff line change 10
10
11
11
/**
12
12
* @covers \Magento\Backup\Controller\Adminhtml\Index\Download
13
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
13
14
*/
14
15
class DownloadTest extends \PHPUnit_Framework_TestCase
15
16
{
@@ -252,4 +253,4 @@ public function executeBackupNotFoundDataProvider()
252
253
[0 , false , 0 ]
253
254
];
254
255
}
255
- }
256
+ }
Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Customer \Controller \Adminhtml \Index ;
8
8
9
+ /**
10
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
11
+ */
9
12
class ViewfileTest extends \PHPUnit_Framework_TestCase
10
13
{
11
14
/**
@@ -125,7 +128,7 @@ public function testExecuteParamFile()
125
128
['Magento\Framework\Filesystem ' , $ this ->fileSystemMock ],
126
129
['Magento\Core\Helper\File\Storage ' , $ this ->storage ]
127
130
]
128
- );
131
+ );
129
132
130
133
$ this ->urlDecoderMock ->expects ($ this ->once ())->method ('decode ' )->with ($ decodedFile )->willReturn ($ file );
131
134
@@ -211,4 +214,4 @@ public function testExecuteGetParamImage()
211
214
);
212
215
$ this ->assertSame ($ this ->resultRawMock , $ controller ->execute ());
213
216
}
214
- }
217
+ }
Original file line number Diff line number Diff line change @@ -368,7 +368,10 @@ public function testVerifyIdentityInactiveRecord()
368
368
->with ($ password , $ this ->_model ->getPassword ())
369
369
->will ($ this ->returnValue (true ));
370
370
$ this ->_model ->setIsActive (false );
371
- $ this ->setExpectedException ('Magento \\Framework \\Exception \\AuthenticationException ' , 'This account is inactive. ' );
371
+ $ this ->setExpectedException (
372
+ 'Magento \\Framework \\Exception \\AuthenticationException ' ,
373
+ 'This account is inactive. '
374
+ );
372
375
$ this ->_model ->verifyIdentity ($ password );
373
376
}
374
377
You can’t perform that action at this time.
0 commit comments