_createIntegrationController('PermissionsDialog'); $this->_requestMock->expects($this->any()) ->method('getParam') ->with($this->equalTo(\Magento\Integration\Controller\Adminhtml\Integration::PARAM_INTEGRATION_ID)) ->will($this->returnValue(self::INTEGRATION_ID)); $this->_integrationSvcMock->expects($this->any()) ->method('get') ->with($this->equalTo(self::INTEGRATION_ID)) ->will($this->returnValue($this->_getSampleIntegrationData())); // @codingStandardsIgnoreStart $handle = << integration_activate_permissions_tabs_webapi integration_activate_permissions_tabs_webapi HANDLE; // @codingStandardsIgnoreEnd $layoutUpdates = new LayoutElement($handle); $this->_registryMock->expects($this->any())->method('register'); $this->_layoutMergeMock->expects($this->once()) ->method('getFileLayoutUpdatesXml') ->will($this->returnValue($layoutUpdates)); $this->_viewMock->expects($this->once()) ->method('loadLayout') ->with($this->equalTo(['adminhtml_integration_activate_permissions_webapi'])); $controller->execute(); } }