/** * {@inheritdoc} */ public function clean(\Magento\Customer\Model\Visitor $object) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'clean'); if (!$pluginInfo) { return parent::clean($object); } else { return $this->___callPlugins('clean', func_get_args(), $pluginInfo); } }
public function testClean() { $this->resource->expects($this->once())->method('clean')->with($this->visitor)->will($this->returnSelf()); $this->visitor->clean(); }
/** * {@inheritdoc} */ public function getValidationRulesBeforeSave() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getValidationRulesBeforeSave'); if (!$pluginInfo) { return parent::getValidationRulesBeforeSave(); } else { return $this->___callPlugins('getValidationRulesBeforeSave', func_get_args(), $pluginInfo); } }