Skip to content

Commit

Permalink
ENGCOM-6563: [CurrencySymbol] Fixing the redirect after saving the cu…
Browse files Browse the repository at this point in the history
…rrency symbols #26311
  • Loading branch information
VladimirZaets committed Jan 14, 2020
2 parents 9852b58 + 5af4705 commit 44fefd8
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 44fefd8

Please sign in to comment.