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