public function testFindByConsumerIdNotFound() { $this->_emptyIntegrationMock->expects($this->any())->method('getData')->will($this->returnValue(null)); $this->_integrationMock->expects($this->once())->method('load')->with(self::VALUE_INTEGRATION_CONSUMER_ID, 'consumer_id')->will($this->returnValue($this->_emptyIntegrationMock)); $integration = $this->_service->findByConsumerId(1); $this->assertNull($integration->getData()); }
/** * {@inheritdoc} */ public function findByConsumerId($consumerId) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'findByConsumerId'); if (!$pluginInfo) { return parent::findByConsumerId($consumerId); } else { return $this->___callPlugins('findByConsumerId', func_get_args(), $pluginInfo); } }