Skip to content

Commit

Permalink
[17] Read API :: Integration tests :: Customer* magento#55
Browse files Browse the repository at this point in the history
  • Loading branch information
skovalenk committed Jun 12, 2020
1 parent 885cdc7 commit 9bd85c2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ protected function setUp(): void
parent::setUp();

$this->_objectManager->get(\Magento\Backend\Model\UrlInterface::class)->turnOffSecretKey();

/**
* Authorization can be created on test bootstrap...
* If it will be created on test bootstrap we will have invalid RoleLocator object.
* As tests by default are run not from adminhtml area...
*/
\Magento\TestFramework\ObjectManager::getInstance()->removeSharedInstance(\Magento\Framework\Authorization::class);
$this->_auth = $this->_objectManager->get(\Magento\Backend\Model\Auth::class);
$this->_session = $this->_auth->getAuthStorage();
$credentials = $this->_getAdminCredentials();
Expand Down

0 comments on commit 9bd85c2

Please sign in to comment.