Ejemplo n.º 1
0
 /**
  * {@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);
     }
 }
Ejemplo n.º 2
0
 public function testClean()
 {
     $this->resource->expects($this->once())->method('clean')->with($this->visitor)->will($this->returnSelf());
     $this->visitor->clean();
 }
Ejemplo n.º 3
0
 /**
  * {@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);
     }
 }