Skip to content

Commit

Permalink
Fix static tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalevanec committed Apr 19, 2019
1 parent 658b5a7 commit 5bc05b2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
*/
namespace Magento\Backup\Controller\Adminhtml\Index;

use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Framework\App\Filesystem\DirectoryList;
use Magento\Framework\Filesystem;

/**
* Backup rollback controller.
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Rollback extends \Magento\Backup\Controller\Adminhtml\Index
class Rollback extends \Magento\Backup\Controller\Adminhtml\Index implements HttpPostActionInterface
{
/**
* Rollback Action
Expand Down Expand Up @@ -124,6 +127,7 @@ public function execute()
$adminSession->destroy();

$response->setRedirectUrl($this->getUrl('*'));
// phpcs:disable Magento2.Exceptions.ThrowCatch
} catch (\Magento\Framework\Backup\Exception\CantLoadSnapshot $e) {
$errorMsg = __('We can\'t find the backup file.');
} catch (\Magento\Framework\Backup\Exception\FtpConnectionFailed $e) {
Expand Down

0 comments on commit 5bc05b2

Please sign in to comment.