Skip to content

Commit

Permalink
Fix issue with UnitTests
Browse files Browse the repository at this point in the history
  • Loading branch information
Usik2203 committed Feb 17, 2020
1 parent 8c672eb commit b90f20c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions setup/src/Magento/Setup/Controller/Navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,18 @@ class Navigation extends AbstractActionController
/**
* @param NavModel $navigation
* @param Status $status
* @param ViewModel $viewModel
* @param JsonModel $jsonModel
* @param ObjectManagerProvider $objectManagerProvider
*/
public function __construct(
NavModel $navigation,
Status $status,
ViewModel $viewModel,
JsonModel $jsonModel,
ObjectManagerProvider $objectManagerProvider
) {
$this->navigation = $navigation;
$this->status = $status;
$this->objectManagerProvider = $objectManagerProvider->get();
$this->view = $viewModel;
$this->json = $jsonModel;
$this->json = new JsonModel();
$this->view = new ViewModel();
$this->view->setVariable('menu', $this->navigation->getMenuItems());
$this->view->setVariable('main', $this->navigation->getMainItems());
}
Expand Down

0 comments on commit b90f20c

Please sign in to comment.