14 $this->_registryMock->expects($this->any())->method(
'register');
16 $this->_requestMock->expects(
21 $this->returnValueMap(
24 \
Magento\Integration\Controller\Adminhtml\Integration::PARAM_INTEGRATION_ID,
27 ],[\
Magento\Integration\Controller\Adminhtml\Integration::PARAM_REAUTHORIZE, 0, 0],
32 $this->_integrationSvcMock->expects(
37 $this->equalTo(self::INTEGRATION_ID)
42 $this->_escaper->expects($this->once())
43 ->method(
'escapeHtml')
44 ->willReturnArgument(0);
46 $this->_oauthSvcMock->expects($this->once())->method(
'createAccessToken')->will($this->returnValue(
true));
48 $this->_viewMock->expects($this->any())->method(
'loadLayout');
49 $this->_viewMock->expects($this->any())->method(
'renderLayout');
_getIntegrationModelMock()
_createIntegrationController($actionName)