/** * {@inheritdoc} */ public function reset() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'reset'); if (!$pluginInfo) { return parent::reset(); } else { return $this->___callPlugins('reset', func_get_args(), $pluginInfo); } }
/** * {@inheritdoc} */ public function get($path = null, $default = null) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'get'); if (!$pluginInfo) { return parent::get($path, $default); } else { return $this->___callPlugins('get', func_get_args(), $pluginInfo); } }
public function testGetIndexer() { $indexerId = 1; $this->configMock->expects($this->once())->method('get')->with($indexerId)->willReturnSelf(); $this->model->getIndexer($indexerId); }
/** * Get indexer by ID * * @param string $indexerId * @return array */ public function getIndexer($indexerId) { return $this->configData->get($indexerId); }