/** * @expectedException \Magento\Framework\Exception\IntegrationException * @expectedExceptionMessage Integration with ID '1' does not exist. */ public function testGetException() { $this->_integrationMock->expects($this->any())->method('getId')->will($this->returnValue(null)); $this->_integrationMock->expects($this->once())->method('load')->will($this->returnSelf()); $this->_integrationMock->expects($this->never())->method('save'); $this->_service->get(self::VALUE_INTEGRATION_ID)->getData(); }
/** * {@inheritdoc} */ public function get($integrationId) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'get'); if (!$pluginInfo) { return parent::get($integrationId); } else { return $this->___callPlugins('get', func_get_args(), $pluginInfo); } }