Skip to content

Commit

Permalink
Fixing the redirect after saving the currency symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard13 committed Jan 8, 2020
1 parent f2aa57e commit f7d8602
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ public function execute()
$this->messageManager->addErrorMessage($e->getMessage());
}

return $resultRedirect->setPath('*');
return $resultRedirect->setPath('adminhtml/*/');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function testExecute()
->with(__('You applied the custom currency symbols.'));

$redirect = $this->createMock(Redirect::class);
$redirect->expects($this->once())->method('setPath')->with('*')->willReturnSelf();
$redirect->expects($this->once())->method('setPath')->with('adminhtml/*/')->willReturnSelf();
$this->resultRedirectFactory->method('create')->willReturn($redirect);

$this->assertEquals($redirect, $this->action->execute());
Expand Down

0 comments on commit f7d8602

Please sign in to comment.