/**
  * @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();
 }
Exemplo n.º 2
0
 /**
  * {@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);
     }
 }